✨ 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
2.5 KiB
JavaScript
65 lines
2.5 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const codegen_1 = require("../../compile/codegen");
|
|
const util_1 = require("../../compile/util");
|
|
const names_1 = require("../../compile/names");
|
|
const error = {
|
|
message: "must NOT have unevaluated properties",
|
|
params: ({ params }) => (0, codegen_1._) `{unevaluatedProperty: ${params.unevaluatedProperty}}`,
|
|
};
|
|
const def = {
|
|
keyword: "unevaluatedProperties",
|
|
type: "object",
|
|
schemaType: ["boolean", "object"],
|
|
trackErrors: true,
|
|
error,
|
|
code(cxt) {
|
|
const { gen, schema, data, errsCount, it } = cxt;
|
|
/* istanbul ignore if */
|
|
if (!errsCount)
|
|
throw new Error("ajv implementation error");
|
|
const { allErrors, props } = it;
|
|
if (props instanceof codegen_1.Name) {
|
|
gen.if((0, codegen_1._) `${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
}
|
|
else if (props !== true) {
|
|
gen.forIn("key", data, (key) => props === undefined
|
|
? unevaluatedPropCode(key)
|
|
: gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
}
|
|
it.props = true;
|
|
cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
|
|
function unevaluatedPropCode(key) {
|
|
if (schema === false) {
|
|
cxt.setParams({ unevaluatedProperty: key });
|
|
cxt.error();
|
|
if (!allErrors)
|
|
gen.break();
|
|
return;
|
|
}
|
|
if (!(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
const valid = gen.name("valid");
|
|
cxt.subschema({
|
|
keyword: "unevaluatedProperties",
|
|
dataProp: key,
|
|
dataPropType: util_1.Type.Str,
|
|
}, valid);
|
|
if (!allErrors)
|
|
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
}
|
|
}
|
|
function unevaluatedDynamic(evaluatedProps, key) {
|
|
return (0, codegen_1._) `!${evaluatedProps} || !${evaluatedProps}[${key}]`;
|
|
}
|
|
function unevaluatedStatic(evaluatedProps, key) {
|
|
const ps = [];
|
|
for (const p in evaluatedProps) {
|
|
if (evaluatedProps[p] === true)
|
|
ps.push((0, codegen_1._) `${key} !== ${p}`);
|
|
}
|
|
return (0, codegen_1.and)(...ps);
|
|
}
|
|
},
|
|
};
|
|
exports.default = def;
|
|
//# sourceMappingURL=unevaluatedProperties.js.map
|