Tightest limit of a rule
64-bitThe minimum and maximum a rule allows when several ticked packs have it.
min = max(minᵢ); max = min(maxᵢ)
Comparisons only; the values are not changed. The pack name returned is that of the first ticked pack that has the rule, also when a later pack supplied the tighter value. The result is not checked for a minimum above the maximum.
/** The tightest limit of a rule across the ticked packs: { min, max, pack } or null when none of them has the rule. */
limit(id) {
let out = null;
for (const prof of profiles()) {
const r = prof.rule(id);
if (!r) continue;
const b = ruleBounds(r);
out = out ? { min: b.min === null ? out.min : Math.max(out.min ?? -Infinity, b.min), max: b.max === null ? out.max : Math.min(out.max ?? Infinity, b.max), pack: out.pack } : { min: b.min, max: b.max, pack: prof.name };
}
return out;
},