@wordinweb/agent 0.2.1 → 0.2.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.
@@ -14935,7 +14935,7 @@ var Engine = class {
14935
14935
  "hRel" in s && s.hRel === "char" ? charX : this.colX,
14936
14936
  "vRel" in s && s.vRel === "line" ? lineY : paraTop
14937
14937
  );
14938
- if ("wrap" in s && s.wrap && s.wrap !== "none" && !("behind" in s && s.behind)) reBreak = true;
14938
+ if ("wrap" in s && s.wrap && s.wrap !== "none") reBreak = true;
14939
14939
  }
14940
14940
  if (reBreak) broken = breakNow(paraTop);
14941
14941
  };
@@ -16635,7 +16635,7 @@ var Engine = class {
16635
16635
  autofit: shape.autofitHeight ? "resizeShape" : shape.shrinkText ? "shrinkText" : "none"
16636
16636
  };
16637
16637
  }
16638
- if (shape.wrap && shape.wrap !== "none" && (!shape.behind || page.physIndex === -1)) {
16638
+ if (shape.wrap && shape.wrap !== "none") {
16639
16639
  const d = shape.dist ?? { t: 0, b: 0, l: 0, r: 0 };
16640
16640
  const list = this.floats.get(page) ?? [];
16641
16641
  list.push({
@@ -18665,7 +18665,8 @@ function distributePctColumns(grid, tableWidth, margins) {
18665
18665
  }
18666
18666
  function resolveGrid(tbl, available, overflowAllowed = false, cellMargins = 0, pctBoxAddsMargins = false) {
18667
18667
  const fixedOverflow = overflowAllowed && tbl.props.layout === "fixed";
18668
- const cap = fixedOverflow ? Number.POSITIVE_INFINITY : available;
18668
+ const pctOverflow = overflowAllowed && (tbl.props.widthPct ?? 0) > 1;
18669
+ const cap = fixedOverflow || pctOverflow ? Number.POSITIVE_INFINITY : available;
18669
18670
  const pctBase = fixedOverflow && pctBoxAddsMargins ? available + cellMargins : available;
18670
18671
  const target = Math.min(
18671
18672
  cap,
@@ -45394,4 +45395,4 @@ export {
45394
45395
  AgentDocument,
45395
45396
  collaborativeAgentTarget
45396
45397
  };
45397
- //# sourceMappingURL=chunk-EMDLXVNY.js.map
45398
+ //# sourceMappingURL=chunk-ATE5QKBU.js.map