export const expandExtentToScale=(e,t,n)=>{const o=e.width/t*n/e.width;return e.clone().expand(o)};export const getNextScale=(e,t=1)=>{let n=t;for(const t of wellKnownScaleRanges)if(t.scale>e&&0==--n)return t.scale};export const getScaleRange=t=>e[t];const e={room:100,rooms:400,smallBuilding:800,building:1999,buildings:3999,street:7499,streets:14999,neighborhood:29999,town:59999,city:119999,cities:249999,metropolitanArea:499999,county:999999,counties:1999999,stateProvince:3999999,statesProvinces:6999999,countriesSmall:14999999,countriesBig:34999999,continent:99999999,world:147914382};export const wellKnownScaleRanges=Object.entries(e).map((e=>({id:e[0],scale:e[1]})));