refactor: draw state labels - raycasting approach

This commit is contained in:
Azgaar 2022-09-14 02:17:09 +03:00
parent e07bf91cd7
commit 6954888ab2
6 changed files with 123 additions and 155 deletions

View file

@ -67,8 +67,8 @@ async function generate(options?: IGenerationOptions) {
// renderLayer("heightmap");
// renderLayer("rivers");
// renderLayer("biomes");
renderLayer("burgs");
renderLayer("routes");
// renderLayer("burgs");
// renderLayer("routes");
renderLayer("states");
renderLayer("labels");

View file

@ -15,7 +15,6 @@ export function getPolesOfInaccessibility(props: IGetPolesProps) {
TIME && console.time("getPolesOfInaccessibility");
const multiPolygons = getMultiPolygons(props);
const sortByLength = (a: unknown[], b: unknown[]) => b.length - a.length;
console.log(multiPolygons);
const poles: Dict<TPoint> = Object.fromEntries(
Object.entries(multiPolygons).map(([id, multiPolygon]) => {