@k-table/sheet-core 1.0.32 → 1.0.34

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.cts CHANGED
@@ -1458,7 +1458,7 @@ interface TextMeasurer {
1458
1458
  /** 测量给定 css font(如 "normal bold 10.5px sans-serif")下文本宽度(px)。 */
1459
1459
  measure(text: string, font: string): number;
1460
1460
  }
1461
- /** 软换行(measurer 版,纯逻辑,无 DOM 依赖)。 */
1461
+ /** 软换行(measurer 版,纯逻辑,无 DOM 依赖)。允许在任意字符前断开,含标点。 */
1462
1462
  declare function wrapTextToWidthM(measurer: TextMeasurer, font: string, text: string, maxWidth: number): string[];
1463
1463
  /**
1464
1464
  * shrinkToFit(measurer 版):先按 wrapText 折行,仍超格再缩字;仅 shrink 只压宽不自动折。
package/dist/index.d.ts CHANGED
@@ -1458,7 +1458,7 @@ interface TextMeasurer {
1458
1458
  /** 测量给定 css font(如 "normal bold 10.5px sans-serif")下文本宽度(px)。 */
1459
1459
  measure(text: string, font: string): number;
1460
1460
  }
1461
- /** 软换行(measurer 版,纯逻辑,无 DOM 依赖)。 */
1461
+ /** 软换行(measurer 版,纯逻辑,无 DOM 依赖)。允许在任意字符前断开,含标点。 */
1462
1462
  declare function wrapTextToWidthM(measurer: TextMeasurer, font: string, text: string, maxWidth: number): string[];
1463
1463
  /**
1464
1464
  * shrinkToFit(measurer 版):先按 wrapText 折行,仍超格再缩字;仅 shrink 只压宽不自动折。