✨ 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
65 lines
1.9 KiB
JavaScript
65 lines
1.9 KiB
JavaScript
/*
|
|
Copyright 2012-2015, Yahoo Inc.
|
|
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
*/
|
|
'use strict';
|
|
|
|
/**
|
|
* istanbul-lib-coverage exports an API that allows you to create and manipulate
|
|
* file coverage, coverage maps (a set of file coverage objects) and summary
|
|
* coverage objects. File coverage for the same file can be merged as can
|
|
* entire coverage maps.
|
|
*
|
|
* @module Exports
|
|
*/
|
|
const { FileCoverage } = require('./lib/file-coverage');
|
|
const { CoverageMap } = require('./lib/coverage-map');
|
|
const { CoverageSummary } = require('./lib/coverage-summary');
|
|
|
|
module.exports = {
|
|
/**
|
|
* creates a coverage summary object
|
|
* @param {Object} obj an argument with the same semantics
|
|
* as the one passed to the `CoverageSummary` constructor
|
|
* @returns {CoverageSummary}
|
|
*/
|
|
createCoverageSummary(obj) {
|
|
if (obj && obj instanceof CoverageSummary) {
|
|
return obj;
|
|
}
|
|
return new CoverageSummary(obj);
|
|
},
|
|
/**
|
|
* creates a CoverageMap object
|
|
* @param {Object} obj optional - an argument with the same semantics
|
|
* as the one passed to the CoverageMap constructor.
|
|
* @returns {CoverageMap}
|
|
*/
|
|
createCoverageMap(obj) {
|
|
if (obj && obj instanceof CoverageMap) {
|
|
return obj;
|
|
}
|
|
return new CoverageMap(obj);
|
|
},
|
|
/**
|
|
* creates a FileCoverage object
|
|
* @param {Object} obj optional - an argument with the same semantics
|
|
* as the one passed to the FileCoverage constructor.
|
|
* @returns {FileCoverage}
|
|
*/
|
|
createFileCoverage(obj) {
|
|
if (obj && obj instanceof FileCoverage) {
|
|
return obj;
|
|
}
|
|
return new FileCoverage(obj);
|
|
}
|
|
};
|
|
|
|
/** classes exported for reuse */
|
|
module.exports.classes = {
|
|
/**
|
|
* the file coverage constructor
|
|
*/
|
|
FileCoverage
|
|
};
|