@idle-screens/schema 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -942,7 +942,7 @@ function weightedIndex(u, weights) {
|
|
|
942
942
|
return weights.length - 1;
|
|
943
943
|
}
|
|
944
944
|
function buildEntities(layer, rng, w, h, scale = 1, countScale = 1) {
|
|
945
|
-
const effectiveCount = countScale === 1 ? layer.count : Math.max(1, Math.min(
|
|
945
|
+
const effectiveCount = countScale === 1 || layer.layout?.type === "grid" ? layer.count : Math.max(1, Math.min(
|
|
946
946
|
Math.round(layer.count * countScale),
|
|
947
947
|
layer.links ? LIMITS.maxLinkLayerCount : LIMITS.maxPerLayer
|
|
948
948
|
));
|