|
|
@ -109,15 +109,15 @@ export class MapChunkView extends MapChunk {
|
|
|
|
if (this.root.currentLayer === "regular") {
|
|
|
|
if (this.root.currentLayer === "regular") {
|
|
|
|
for (let i = 0; i < this.patches.length; ++i) {
|
|
|
|
for (let i = 0; i < this.patches.length; ++i) {
|
|
|
|
const patch = this.patches[i];
|
|
|
|
const patch = this.patches[i];
|
|
|
|
|
|
|
|
if (patch.item.getItemType() === "shape") {
|
|
|
|
const destX = this.x * dims + patch.pos.x * globalConfig.tileSize;
|
|
|
|
const destX = this.x * dims + patch.pos.x * globalConfig.tileSize;
|
|
|
|
const destY = this.y * dims + patch.pos.y * globalConfig.tileSize;
|
|
|
|
const destY = this.y * dims + patch.pos.y * globalConfig.tileSize;
|
|
|
|
const diameter = Math.min(80, 30 / parameters.zoomLevel);
|
|
|
|
const diameter = 100 / Math.pow(parameters.zoomLevel, 0.35);
|
|
|
|
|
|
|
|
|
|
|
|
patch.item.drawItemCenteredClipped(destX, destY, parameters, diameter);
|
|
|
|
patch.item.drawItemCenteredClipped(destX, destY, parameters, diameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|