✨ 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
92 lines
2.1 KiB
TypeScript
92 lines
2.1 KiB
TypeScript
export type Asset = 'string' | AssetEntry;
|
|
export interface AssetEntry {
|
|
glob: string;
|
|
include?: string;
|
|
flat?: boolean;
|
|
exclude?: string;
|
|
outDir?: string;
|
|
watchAssets?: boolean;
|
|
}
|
|
export interface ActionOnFile {
|
|
action: 'change' | 'unlink';
|
|
item: AssetEntry;
|
|
path: string;
|
|
sourceRoot: string;
|
|
watchAssetsMode: boolean;
|
|
}
|
|
export interface SwcBuilderOptions {
|
|
swcrcPath?: string;
|
|
outDir?: string;
|
|
filenames?: string[];
|
|
sync?: boolean;
|
|
extensions?: string[];
|
|
copyFiles?: boolean;
|
|
includeDotfiles?: boolean;
|
|
quiet?: boolean;
|
|
}
|
|
export interface WebpackBuilderOptions {
|
|
configPath?: string;
|
|
}
|
|
export interface TscBuilderOptions {
|
|
configPath?: string;
|
|
}
|
|
export type BuilderVariant = 'tsc' | 'swc' | 'webpack';
|
|
export type Builder = BuilderVariant | {
|
|
type: 'webpack';
|
|
options?: WebpackBuilderOptions;
|
|
} | {
|
|
type: 'swc';
|
|
options?: SwcBuilderOptions;
|
|
} | {
|
|
type: 'tsc';
|
|
options?: TscBuilderOptions;
|
|
};
|
|
export interface CompilerOptions {
|
|
tsConfigPath?: string;
|
|
/**
|
|
* @deprecated Use `builder` instead.
|
|
*/
|
|
webpack?: boolean;
|
|
/**
|
|
* @deprecated Use `builder.options.configPath` instead.
|
|
*/
|
|
webpackConfigPath?: string;
|
|
plugins?: string[] | PluginOptions[];
|
|
assets?: string[];
|
|
deleteOutDir?: boolean;
|
|
manualRestart?: boolean;
|
|
builder?: Builder;
|
|
}
|
|
export interface PluginOptions {
|
|
name: string;
|
|
options: Record<string, any>[];
|
|
}
|
|
export interface GenerateOptions {
|
|
spec?: boolean | Record<string, boolean>;
|
|
flat?: boolean;
|
|
specFileSuffix?: string;
|
|
baseDir?: string;
|
|
}
|
|
export interface ProjectConfiguration {
|
|
type?: string;
|
|
root?: string;
|
|
entryFile?: string;
|
|
exec?: string;
|
|
sourceRoot?: string;
|
|
compilerOptions?: CompilerOptions;
|
|
}
|
|
export interface Configuration {
|
|
[key: string]: any;
|
|
language?: string;
|
|
collection?: string;
|
|
sourceRoot?: string;
|
|
entryFile?: string;
|
|
exec?: string;
|
|
monorepo?: boolean;
|
|
compilerOptions?: CompilerOptions;
|
|
generateOptions?: GenerateOptions;
|
|
projects?: {
|
|
[key: string]: ProjectConfiguration;
|
|
};
|
|
}
|