@idle-screens/schema 3.4.2 → 3.4.4

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 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
  ));
@@ -2230,6 +2230,9 @@ var SequenceInstance = class {
2230
2230
  }
2231
2231
  }
2232
2232
  resize(width, height, dpr) {
2233
+ this.childCtx.width = width;
2234
+ this.childCtx.height = height;
2235
+ if (dpr !== void 0) this.childCtx.dpr = dpr;
2233
2236
  for (const child of this.children) {
2234
2237
  child?.resize(width, height, dpr);
2235
2238
  }