range
import { Ranges } from "@seala/ranges";
const range = new Ranges({
key1: [
{ min: 0, max: 100 },
{ min: 100, max: 300 },
{ min: 300, max: 500 },
],
key2: [
{ min: 0, max: 200 },
{ min: 200, max: 400 },
{ min: 400, max: 500 },
],
});
range.getAffect("key1", 50, 150);
range.getData("key1", 50, 150);