✨ 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
66 lines
2.5 KiB
TypeScript
66 lines
2.5 KiB
TypeScript
/// <reference types="node" />
|
|
import * as TsconfigPaths from "tsconfig-paths";
|
|
import * as Options from "./options";
|
|
import * as Logger from "./logger";
|
|
import * as fs from "fs";
|
|
import { ResolvePluginInstance, Resolver } from "webpack";
|
|
import { AsyncSeriesBailHook } from "tapable";
|
|
import { ResolveContext, ResolveRequest } from "enhanced-resolve";
|
|
export interface LegacyResolverPlugin {
|
|
readonly apply: (resolver: LegacyResolver) => void;
|
|
}
|
|
export interface LegacyResolver {
|
|
readonly apply: (plugin: LegacyResolverPlugin) => void;
|
|
readonly plugin: (source: string, cb: ResolverCallbackLegacy) => void;
|
|
readonly doResolve: doResolveLegacy | doResolve;
|
|
readonly join: (relativePath: string, innerRequest: Request) => Request;
|
|
readonly fileSystem: LegacyResolverFileSystem;
|
|
readonly getHook: (hook: string) => AsyncSeriesBailHook<[
|
|
ResolveRequest,
|
|
ResolveContext
|
|
], null | ResolveRequest>;
|
|
}
|
|
export type doResolveLegacy = (target: string, req: Request, desc: string, callback: Callback) => void;
|
|
export type doResolve = (hook: AsyncSeriesBailHook<[
|
|
ResolveRequest,
|
|
ResolveContext
|
|
], null | ResolveRequest>, req: Request, message: string, resolveContext: LegacyResolveContext, callback: Callback) => void;
|
|
export type ReadJsonCallback = (error: Error | undefined | null, result?: {}) => void;
|
|
export type ReadJson = (path2: string, callback: ReadJsonCallback) => void;
|
|
export type LegacyResolverFileSystem = typeof fs & {
|
|
readJson?: ReadJson;
|
|
};
|
|
export interface LegacyResolveContext {
|
|
log?: string;
|
|
stack?: string;
|
|
missing?: string;
|
|
}
|
|
export type ResolverCallbackLegacy = (request: Request, callback: Callback) => void;
|
|
export type ResolverCallback = (request: Request, resolveContext: LegacyResolveContext, callback: Callback) => void;
|
|
export interface Request {
|
|
readonly request?: Request | string;
|
|
readonly relativePath: string;
|
|
readonly path: string;
|
|
readonly context: {
|
|
readonly issuer: string;
|
|
};
|
|
}
|
|
export interface Callback {
|
|
(err?: Error, result?: string): void;
|
|
log?: string;
|
|
stack?: string;
|
|
missing?: string;
|
|
}
|
|
export declare class TsconfigPathsPlugin implements Exclude<ResolvePluginInstance, Function> {
|
|
source: string;
|
|
target: string;
|
|
log: Logger.Logger;
|
|
baseUrl: string | undefined;
|
|
absoluteBaseUrl: string;
|
|
extensions: ReadonlyArray<string>;
|
|
referenceMatchMap: Record<string, TsconfigPaths.MatchPathAsync>;
|
|
matchPath: TsconfigPaths.MatchPathAsync;
|
|
constructor(rawOptions?: Partial<Options.Options>);
|
|
apply(resolver: Resolver): void;
|
|
}
|