@worm-vue3-print/core 1.3.6 → 1.3.8

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
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
7
7
  import {
8
8
  TemplateEngine
9
- } from "./chunk-GLNQXOMO.js";
9
+ } from "./chunk-ZKHVOCU5.js";
10
10
  import {
11
11
  DEFAULT_READINESS_MS,
12
12
  DEFAULT_SHRINK_MIN_FONT_SIZE_PT,
@@ -125,7 +125,7 @@ import {
125
125
  tokenize,
126
126
  validateTiling,
127
127
  withTimeout
128
- } from "./chunk-JQUJ7AF3.js";
128
+ } from "./chunk-TQJGFV2V.js";
129
129
  export {
130
130
  DEFAULT_READINESS_MS,
131
131
  DEFAULT_SHRINK_MIN_FONT_SIZE_PT,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
7
- import { Y as ExecutorBundle } from '../driver-CFm0C_yX.cjs';
7
+ import { Y as ExecutorBundle } from '../driver-hJxBl2_n.cjs';
8
8
 
9
9
  /** 读取 core 自带的 DOM 执行器 IIFE 产物;宿主把它注入页面后即可调用 __wormDom */
10
10
  declare function loadExecutorBundle(): ExecutorBundle;
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
7
- import { Y as ExecutorBundle } from '../driver-CFm0C_yX.js';
7
+ import { Y as ExecutorBundle } from '../driver-hJxBl2_n.js';
8
8
 
9
9
  /** 读取 core 自带的 DOM 执行器 IIFE 产物;宿主把它注入页面后即可调用 __wormDom */
10
10
  declare function loadExecutorBundle(): ExecutorBundle;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
7
- import { H as TextFit, a as CodeSpec, N as ViewportPx, R as RawMeasurement, S as PdfTargetSpec } from './driver-CFm0C_yX.js';
7
+ import { H as TextFit, a as CodeSpec, N as ViewportPx, R as RawMeasurement, S as PdfTargetSpec } from './driver-hJxBl2_n.cjs';
8
8
 
9
9
  /** 自动缩小的默认下限字号(pt) */
10
10
  declare const DEFAULT_SHRINK_MIN_FONT_SIZE_PT = 6;
@@ -44,6 +44,12 @@ declare function parseCellFitKey(key: string): {
44
44
  rowIndex: number;
45
45
  colIndex: number;
46
46
  } | undefined;
47
+ /**
48
+ * 单元格图片外框要不要钉在可用框高上:只有「剪裁」(`fit: 'cover'`)钉,其余档逐字保持
49
+ * 「td 高度由内容决定」的存量形态。出纸、画布与 common 三端都取这一份判据,避免各写一遍漂移。
50
+ * 返回 undefined 表示不钉盒。
51
+ */
52
+ declare function cellImageBoxMm(fit: string | undefined, capMm: number): number | undefined;
47
53
  /** 边框宽度(pt,可缺省);结构上兼容 RenderCellBorders 与 TableCellBorders */
48
54
  type BorderLike = {
49
55
  width?: number;
@@ -104,4 +110,4 @@ interface PrintRuntime {
104
110
  declare const DEFAULT_TIMEOUT_MS = 30000;
105
111
  declare const DEFAULT_READINESS_MS = 5000;
106
112
 
107
- export { type CellFitRowKind as C, DEFAULT_SHRINK_MIN_FONT_SIZE_PT as D, type FitFontSize as F, MIN_SHRINK_FONT_SIZE_PT as M, type PrintRuntime as P, type SessionBudget as S, cellFitKey as a, cellFitWidthMm as b, cellFitCapMm as c, resolveElementTextFit as d, resolveShrinkMinFontSize as e, floorFontSize as f, roundFontSize as g, DEFAULT_READINESS_MS as h, DEFAULT_TIMEOUT_MS as i, type MeasureResult as j, type PrintSession as k, parseCellFitKey as p, resolveCellTextFit as r };
113
+ export { type CellFitRowKind as C, DEFAULT_SHRINK_MIN_FONT_SIZE_PT as D, type FitFontSize as F, MIN_SHRINK_FONT_SIZE_PT as M, type PrintRuntime as P, type SessionBudget as S, cellFitKey as a, cellFitWidthMm as b, cellFitCapMm as c, cellImageBoxMm as d, resolveElementTextFit as e, floorFontSize as f, resolveShrinkMinFontSize as g, roundFontSize as h, DEFAULT_READINESS_MS as i, DEFAULT_TIMEOUT_MS as j, type MeasureResult as k, type PrintSession as l, parseCellFitKey as p, resolveCellTextFit as r };
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @worm-vue3-print/core v1.3.6
2
+ * @worm-vue3-print/core v1.3.8
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
7
- import { H as TextFit, a as CodeSpec, N as ViewportPx, R as RawMeasurement, S as PdfTargetSpec } from './driver-CFm0C_yX.cjs';
7
+ import { H as TextFit, a as CodeSpec, N as ViewportPx, R as RawMeasurement, S as PdfTargetSpec } from './driver-hJxBl2_n.js';
8
8
 
9
9
  /** 自动缩小的默认下限字号(pt) */
10
10
  declare const DEFAULT_SHRINK_MIN_FONT_SIZE_PT = 6;
@@ -44,6 +44,12 @@ declare function parseCellFitKey(key: string): {
44
44
  rowIndex: number;
45
45
  colIndex: number;
46
46
  } | undefined;
47
+ /**
48
+ * 单元格图片外框要不要钉在可用框高上:只有「剪裁」(`fit: 'cover'`)钉,其余档逐字保持
49
+ * 「td 高度由内容决定」的存量形态。出纸、画布与 common 三端都取这一份判据,避免各写一遍漂移。
50
+ * 返回 undefined 表示不钉盒。
51
+ */
52
+ declare function cellImageBoxMm(fit: string | undefined, capMm: number): number | undefined;
47
53
  /** 边框宽度(pt,可缺省);结构上兼容 RenderCellBorders 与 TableCellBorders */
48
54
  type BorderLike = {
49
55
  width?: number;
@@ -104,4 +110,4 @@ interface PrintRuntime {
104
110
  declare const DEFAULT_TIMEOUT_MS = 30000;
105
111
  declare const DEFAULT_READINESS_MS = 5000;
106
112
 
107
- export { type CellFitRowKind as C, DEFAULT_SHRINK_MIN_FONT_SIZE_PT as D, type FitFontSize as F, MIN_SHRINK_FONT_SIZE_PT as M, type PrintRuntime as P, type SessionBudget as S, cellFitKey as a, cellFitWidthMm as b, cellFitCapMm as c, resolveElementTextFit as d, resolveShrinkMinFontSize as e, floorFontSize as f, roundFontSize as g, DEFAULT_READINESS_MS as h, DEFAULT_TIMEOUT_MS as i, type MeasureResult as j, type PrintSession as k, parseCellFitKey as p, resolveCellTextFit as r };
113
+ export { type CellFitRowKind as C, DEFAULT_SHRINK_MIN_FONT_SIZE_PT as D, type FitFontSize as F, MIN_SHRINK_FONT_SIZE_PT as M, type PrintRuntime as P, type SessionBudget as S, cellFitKey as a, cellFitWidthMm as b, cellFitCapMm as c, cellImageBoxMm as d, resolveElementTextFit as e, floorFontSize as f, resolveShrinkMinFontSize as g, roundFontSize as h, DEFAULT_READINESS_MS as i, DEFAULT_TIMEOUT_MS as j, type MeasureResult as k, type PrintSession as l, parseCellFitKey as p, resolveCellTextFit as r };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worm-vue3-print/core",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "type": "module",
5
5
  "description": "打印模板表达式引擎、同构渲染管线与框架无关的设计器内核(HTML 生成/分页/数据绑定/设计器模型与工具),无 Vue/React 依赖",
6
6
  "main": "dist/index.cjs",