✨ 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
37 lines
1.9 KiB
Markdown
37 lines
1.9 KiB
Markdown
The `dist-raw` directory contains JS sources that are distributed verbatim, not compiled nor typechecked via TS.
|
|
|
|
To implement ESM support, we unfortunately must duplicate some of node's built-in functionality that is not
|
|
exposed via an API. We have copy-pasted the necessary code from https://github.com/nodejs/node/tree/master/lib
|
|
then modified it to suite our needs.
|
|
|
|
Formatting may be intentionally bad to keep the diff as small as possible, to make it easier to merge
|
|
upstream changes and understand our modifications. For example, when we need to wrap node's source code
|
|
in a factory function, we will not indent the function body, to avoid whitespace changes in the diff.
|
|
|
|
One obvious problem with this approach: the code has been pulled from one version of node, whereas users of ts-node
|
|
run multiple versions of node.
|
|
Users running node 12 may see that ts-node behaves like node 14, for example.
|
|
|
|
## `raw` directory
|
|
|
|
Within the `raw` directory, we keep unmodified copies of the node source files. This allows us to use diffing tools to
|
|
compare files in `raw` to those in `dist-raw`, which will highlight all of the changes we have made. Hopefully, these
|
|
changes are as minimal as possible.
|
|
|
|
## Naming convention
|
|
|
|
Not used consistently, but the idea is:
|
|
|
|
`node-<directory>(...-<directory>)-<filename>.js`
|
|
|
|
`node-internal-errors.js` -> `github.com/nodejs/node/blob/TAG/lib/internal/errors.js`
|
|
|
|
So, take the path within node's `lib/` directory, and replace slashes with hyphens.
|
|
|
|
In the `raw` directory, files are suffixed with the version number or revision from which
|
|
they were downloaded.
|
|
|
|
If they have a `stripped` suffix, this means they have large chunks of code deleted, but no other modifications.
|
|
This is useful when diffing. Sometimes our `dist-raw` files only have a small part of a much larger node source file.
|
|
It is easier to diff `raw/*-stripped.js` against `dist-raw/*.js`.
|