@worm-vue3-print/core 1.3.7 → 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/browser/index.cjs +180 -112
- package/dist/browser/index.d.cts +3 -3
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.js +2 -2
- package/dist/{chunk-TCI5XQKI.js → chunk-TQJGFV2V.js} +186 -112
- package/dist/{chunk-WLGEOVFK.js → chunk-ZKHVOCU5.js} +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/designer/index.cjs +485 -229
- package/dist/designer/index.d.cts +162 -5
- package/dist/designer/index.d.ts +162 -5
- package/dist/designer/index.js +365 -158
- package/dist/dom-executor.iife.global.js +5 -5
- package/dist/{driver-Dzr2Aikx.d.cts → driver-hJxBl2_n.d.cts} +6 -1
- package/dist/{driver-Dzr2Aikx.d.ts → driver-hJxBl2_n.d.ts} +6 -1
- package/dist/index.cjs +180 -112
- package/dist/index.d.cts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +3 -3
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{ports-Bin4xmo0.d.cts → ports-B-Jb2XwT.d.cts} +9 -3
- package/dist/{ports-B8MFq_Yo.d.ts → ports-CJ0SUYFt.d.ts} +9 -3
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @worm-vue3-print/core v1.3.
|
|
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-
|
|
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,
|
|
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.
|
|
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-
|
|
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,
|
|
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 };
|