@freereportjs/core 0.10.1 → 0.10.2

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.d.ts CHANGED
@@ -1196,7 +1196,7 @@ declare function verifyLicense(key: string, host: string, opts?: {
1196
1196
  declare function setLicenseKey(key: string): void;
1197
1197
 
1198
1198
  /** FreeReport version (kept in sync with releases.json by scripts/release.mjs). */
1199
- declare const version = "0.10.1";
1199
+ declare const version = "0.10.2";
1200
1200
 
1201
1201
  type Lang = 'ko' | 'en';
1202
1202
 
package/dist/index.js CHANGED
@@ -368,7 +368,7 @@ function formatValue(v, format, locale = "ko") {
368
368
  }
369
369
 
370
370
  // src/version.ts
371
- var version = "0.10.1";
371
+ var version = "0.10.2";
372
372
  var releaseDate = "2026-10-19";
373
373
 
374
374
  // src/license.ts
@@ -3058,13 +3058,17 @@ function shifts(slots) {
3058
3058
  const pt = topOf(p.el), pl = leftOf(p.el), pr = rightOf(p.el);
3059
3059
  let nearest3 = null;
3060
3060
  let floor = -Infinity, pushed = -Infinity;
3061
+ const above = [];
3061
3062
  for (const q of order) {
3062
3063
  if (topOf(q.el) >= pt) break;
3063
3064
  if (bottomOf(q.el) > pt + 0.01 || leftOf(q.el) >= pr - 0.01 || pl >= rightOf(q.el) - 0.01) continue;
3065
+ above.push(q);
3064
3066
  if (!nearest3 || bottomOf(q.el) > bottomOf(nearest3.el) + 0.01) nearest3 = q;
3067
+ }
3068
+ for (const q of above) {
3065
3069
  if (q.collapsed) continue;
3066
3070
  const by2 = (off.get(q) ?? 0) + growth(q);
3067
- if (by2 > 0) pushed = Math.max(pushed, by2);
3071
+ if (by2 > 0 && !above.some((c) => c.collapsed && topOf(c.el) >= bottomOf(q.el) - 0.01)) pushed = Math.max(pushed, by2);
3068
3072
  floor = Math.max(floor, bottomOf(q.el) + by2 - pt);
3069
3073
  }
3070
3074
  if (!nearest3) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freereportjs/core",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "FreeReport — a web reporting engine (free for personal use): banded report designer, paged viewer, printing, PDF with embedded Korean fonts, Excel export.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",