@univerjs-pro/sheets-print 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +39 -39
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +14 -3
- package/lib/types/services/sheet-print.service.d.ts +1 -1
- package/lib/types/views/components/sheet-print-canvas-view.d.ts +4 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5b0e95=_0x3477;function _0x3477(_0x5a54ea,_0x484948){_0x5a54ea=_0x5a54ea-0x84;const _0x392e64=_0x392e();let _0x347781=_0x392e64[_0x5a54ea];return _0x347781;}(function(_0x18cdbb,_0x1e8072){const _0x3c1396=_0x3477,_0x32faed=_0x18cdbb();while(!![]){try{const _0x144d0f=-parseInt(_0x3c1396(0x95))/0x1*(-parseInt(_0x3c1396(0x90))/0x2)+parseInt(_0x3c1396(0x8e))/0x3+-parseInt(_0x3c1396(0xa7))/0x4+parseInt(_0x3c1396(0xb1))/0x5*(parseInt(_0x3c1396(0x87))/0x6)+-parseInt(_0x3c1396(0xbd))/0x7*(-parseInt(_0x3c1396(0x97))/0x8)+parseInt(_0x3c1396(0xa6))/0x9+-parseInt(_0x3c1396(0xa0))/0xa;if(_0x144d0f===_0x1e8072)break;else _0x32faed['push'](_0x32faed['shift']());}catch(_0x4cfcb8){_0x32faed['push'](_0x32faed['shift']());}}}(_0x392e,0xae5d8));function _0x392e(){const _0x133c23=['底部对齐','MM月DD日','日期3','HH:mm','关闭并隐藏辅助线','垂直居中','488418HthcRc','法律专用纸(21.6厘米\x20x\x2035.6厘米)','显示分页辅助线','每页最大行数','Vertical','对折纸(21.6厘米\x20x\x2033.0厘米)','显示水印','工作簿','HH:mm:ss','B5(17.6厘米\x20x\x2025.0厘米)','日期4','正在打印,请勿关闭页面','顶部对齐','时间1','子表页码','免费版仅支持\x20{limit}\x20页打印,高级功能请购买商业版!','对齐方式','时间2','总页数','工作簿名称','44778rETMlR','子表总页数','重复冻结列','网格线','右对齐','Univer\x20免费版本,由\x20univer.ai\x20提供支持。','打印布局','2688039lMjjiB','适合宽度','2753474fkvlvG','报表(14.0厘米\x20x\x2021.6厘米)','打印设置','自定义页边距','LTS','1rqEODb','已选范围','120SKagjy','小报(27.9厘米\x20x\x2043.2厘米)','正常\x20(100%)','适合高度','编辑自定义页眉页脚','所有工作表','每页最大列数','MM-DD','行和列限制','39954030sgkRvB','水平居中','日期2','重复冻结行','日期1','当前时间','10174563UPPFlK','1199956ZasaQA','日期格式','自定义页眉页脚','所有已选范围','行政公文纸(18.4厘米\x20x\x2026.7厘米)','适合页面大小','当前工作表','Custom\x20number','图片已保存失败','当前日期','375EFhUnT','页面方向','时间3','A3(29.7厘米\x20x\x2042.0厘米)','转到“查看”>“冻结”可选择要在所有页面重复的行/列','YYYY-MM-DD'];_0x392e=function(){return _0x133c23;};return _0x392e();}const e={'print':{'header':{'total':'打印页数:','pages':'页','cancel':'取消','next':'下一步','printing':_0x5b0e95(0xc8)},'menu':'打印','title':_0x5b0e95(0x92),'grid':{'title':_0x5b0e95(0x8d),'showGrid':_0x5b0e95(0xbf),'showGridLabel':_0x5b0e95(0xbf),'closeAndHide':_0x5b0e95(0xbb)},'screenshot':{'title':'复制为截图','success':'图片已保存到剪贴板','fail':_0x5b0e95(0xaf)},'size':{'title':'纸张大小','letter':'信纸(21.6厘米\x20x\x2027.9厘米)','tabloid':_0x5b0e95(0x98),'legal':_0x5b0e95(0xbe),'statement':_0x5b0e95(0x91),'executive':_0x5b0e95(0xab),'folio':_0x5b0e95(0xc2),'a3':_0x5b0e95(0xb4),'a4':'A4(21.0厘米\x20x\x2029.7厘米)','a5':'A5(14.8厘米\x20x\x2021.0厘米)','b4':'B4(25.0厘米\x20x\x2035.3厘米)','b5':_0x5b0e95(0xc6)},'margin':{'title':'边距','normal':'正常','narrow':'窄','wide':'宽','custom':_0x5b0e95(0x93),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'打印范围','currentSheet':_0x5b0e95(0xad),'workbook':_0x5b0e95(0xc4),'currentSelection':_0x5b0e95(0x96),'maxRowsEachPage':_0x5b0e95(0xc0),'maxColumnsEachPage':_0x5b0e95(0x9d),'limit':_0x5b0e95(0x9f),'allSelection':_0x5b0e95(0xaa)},'selection':{'title':'选择','allWorkbook':_0x5b0e95(0x9c),'workbookUnit':'张工作表'},'scale':{'title':'缩放','normal':_0x5b0e95(0x99),'fitWidth':_0x5b0e95(0x8f),'fitHeight':_0x5b0e95(0x9a),'fitPage':_0x5b0e95(0xac),'custom':_0x5b0e95(0xae)},'orientation':{'title':_0x5b0e95(0xb2),'landscape':'横向','portrait':'纵向'},'formatting':{'title':'内容','skeleton':_0x5b0e95(0x8a),'waterMark':_0x5b0e95(0xc3)},'align':{'title':_0x5b0e95(0xcd),'horizontal':{'title':'Horizontal','middle':_0x5b0e95(0xa1),'start':'左对齐','end':_0x5b0e95(0x8b)},'vertical':{'title':_0x5b0e95(0xc1),'start':_0x5b0e95(0xc9),'end':_0x5b0e95(0xb7),'middle':_0x5b0e95(0xbc)}},'headerFooter':{'title':'页眉和页脚','page':'页码','workbook':'工作簿标题','sheet':'工作簿名称','date':_0x5b0e95(0xb0),'time':_0x5b0e95(0xa5),'customHeadFooter':_0x5b0e95(0xa9),'editCustomHeadFooter':_0x5b0e95(0x9b),'header':'页眉','footer':'页脚','left':'左','right':'右','center':'中','dateFormat':_0x5b0e95(0xa8),'dateA':_0x5b0e95(0xb6),'dateB':_0x5b0e95(0x9e),'dateC':'L','dateD':_0x5b0e95(0xb8),'timeA':_0x5b0e95(0xc5),'timeB':_0x5b0e95(0xba),'timeC':_0x5b0e95(0x94),'timeD':'LT','display':{'page':'页码','title':'工作簿标题','sheet':_0x5b0e95(0x86),'dateA':_0x5b0e95(0xa4),'dateB':_0x5b0e95(0xa2),'dateC':_0x5b0e95(0xb9),'dateD':_0x5b0e95(0xc7),'dateE':'日期5','dateF':'日期6','timeA':_0x5b0e95(0xca),'timeB':_0x5b0e95(0x84),'timeC':_0x5b0e95(0xb3),'timeD':'时间4','sheetPage':_0x5b0e95(0xcb),'pageTotal':_0x5b0e95(0x85),'sheetPageTotal':_0x5b0e95(0x88)},'placeholder':'点击可添加文本','submit':'确定'},'freeze':{'title':'行标题与列标题','desc':_0x5b0e95(0xb5),'row':_0x5b0e95(0xa3),'column':_0x5b0e95(0x89)},'limit':{'page':_0x5b0e95(0xcc),'waterMark':_0x5b0e95(0x8c),'link':'https://univer.ai/pro'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x431f77=_0x4da9;(function(_0x33ee65,_0x425aa1){const _0x52a1de=_0x4da9,_0x11c1d0=_0x33ee65();while(!![]){try{const _0x419ad1=parseInt(_0x52a1de(0x15a))/0x1+parseInt(_0x52a1de(0x15c))/0x2*(parseInt(_0x52a1de(0x150))/0x3)+parseInt(_0x52a1de(0x136))/0x4+-parseInt(_0x52a1de(0x14f))/0x5*(parseInt(_0x52a1de(0x142))/0x6)+parseInt(_0x52a1de(0x160))/0x7+-parseInt(_0x52a1de(0x134))/0x8+-parseInt(_0x52a1de(0x135))/0x9;if(_0x419ad1===_0x425aa1)break;else _0x11c1d0['push'](_0x11c1d0['shift']());}catch(_0x53dff4){_0x11c1d0['push'](_0x11c1d0['shift']());}}}(_0x1c70,0x2421c));const e={'print':{'header':{'total':_0x431f77(0x13a),'pages':'頁','cancel':'取消','next':'下一步','printing':_0x431f77(0x15b)},'menu':'列印','title':'列印','grid':{'title':'列印版面配置','showGrid':_0x431f77(0x164),'showGridLabel':_0x431f77(0x146),'closeAndHide':_0x431f77(0x163)},'screenshot':{'title':'複製為圖片','success':'圖片已成功複製到剪貼簿!','fail':_0x431f77(0x149)},'size':{'title':_0x431f77(0x143),'letter':_0x431f77(0x14d),'tabloid':_0x431f77(0x166),'legal':_0x431f77(0x157),'statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x431f77(0x154),'folio':_0x431f77(0x15d),'a3':_0x431f77(0x137),'a4':_0x431f77(0x131),'a5':'A5\x20(5.83\x22\x20x\x208.27\x22)','b4':_0x431f77(0x13b),'b5':'B5\x20(6.93\x22\x20x\x209.84\x22)'},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':'自訂义頁邊距','top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x431f77(0x16c),'workbook':_0x431f77(0x153),'currentSelection':_0x431f77(0x15f),'maxRowsEachPage':_0x431f77(0x14e),'maxColumnsEachPage':_0x431f77(0x133),'limit':_0x431f77(0x15e),'allSelection':_0x431f77(0x13f)},'selection':{'title':_0x431f77(0x140),'allWorkbook':_0x431f77(0x167),'workbookUnit':'張工作表'},'scale':{'title':'縮放','normal':_0x431f77(0x14a),'fitWidth':_0x431f77(0x169),'fitHeight':_0x431f77(0x155),'fitPage':'調整至頁面大小','custom':_0x431f77(0x14b)},'orientation':{'title':_0x431f77(0x141),'landscape':'橫向','portrait':'直向'},'formatting':{'title':'格式設定','skeleton':_0x431f77(0x138),'waterMark':_0x431f77(0x13c)},'align':{'title':'對齊','horizontal':{'title':_0x431f77(0x151),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x431f77(0x162),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x431f77(0x12c),'page':'頁碼','workbook':'活頁簿標題','sheet':_0x431f77(0x13e),'date':_0x431f77(0x12e),'time':_0x431f77(0x16d),'customHeadFooter':_0x431f77(0x12f),'editCustomHeadFooter':'編輯自訂頁首/頁尾','header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':'日期格式','dateA':'YYYY-MM-DD','dateB':_0x431f77(0x148),'dateC':'L','dateD':'MM/DD','timeA':_0x431f77(0x14c),'timeB':'HH:mm','timeC':_0x431f77(0x165),'timeD':_0x431f77(0x168),'display':{'page':'頁碼','title':_0x431f77(0x156),'sheet':_0x431f77(0x13e),'dateA':_0x431f77(0x16b),'dateB':_0x431f77(0x161),'dateC':_0x431f77(0x16a),'dateD':_0x431f77(0x158),'dateE':_0x431f77(0x12d),'dateF':_0x431f77(0x139),'timeA':_0x431f77(0x132),'timeB':_0x431f77(0x152),'timeC':'時間C','timeD':_0x431f77(0x147),'sheetPage':_0x431f77(0x13d),'pageTotal':_0x431f77(0x159),'sheetPageTotal':_0x431f77(0x144)},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':'列與欄標題','desc':'前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','row':'重複凍結的列','column':'重複凍結的欄'},'limit':{'page':_0x431f77(0x130),'waterMark':'Univer\x20免費版本,由\x20univer.ai\x20提供支援。','link':_0x431f77(0x145)}}};function _0x4da9(_0x2e92ca,_0x2b93b1){_0x2e92ca=_0x2e92ca-0x12c;const _0x1c703a=_0x1c70();let _0x4da9b1=_0x1c703a[_0x2e92ca];return _0x4da9b1;}export{e as default};function _0x1c70(){const _0x569310=['112464XJCHtn','3480849zGbkFv','410808TJjUET','A3\x20(11.69\x22\x20x\x2016.54\x22)','顯示格線','日期F','總計:','B4\x20(9.84\x22\x20x\x2013.90\x22)','顯示浮水印','工作表頁碼','工作表名稱','所有選取的儲存格','選取範圍','頁面方向','315636kRmgqt','紙張大小','工作表總頁數','https://univer.ai/pro','顯示分頁線','時間D','MM-DD','圖片複製到剪貼簿失敗!','標準\x20(100%)','自訂比例','HH:mm:ss','Letter\x20(8.5\x22\x20x\x2011\x22)','每頁最大列數','15uFblHh','3IrINCS','水平對齊','時間B','活頁簿','Executive\x20(7.25\x22\x20x\x2010.5\x22)','調整至頁面高度','活頁簿標題','Legal\x20(8.5\x22\x20x\x2014\x22)','日期D','總頁數','268307BUAyfm','列印中,請勿關閉頁面','298142DlQQIU','Folio\x20(8.5\x22\x20x\x2013\x22)','列與欄限制','已選取的儲存格','1305871dUpydc','日期B','垂直對齊','關閉並隱藏分頁線','顯示分頁符號','hh:mm:ss','Tabloid\x20(11\x22\x20x\x2017\x22)','所有工作表','hh:mm','調整至頁面寬度','日期C','日期A','目前工作表','目前時間','頁首和頁尾','日期E','目前日期','自訂頁首/頁尾','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','A4\x20(8.27\x22\x20x\x2011.69\x22)','時間A','每頁最大欄數'];_0x1c70=function(){return _0x569310;};return _0x1c70();}
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
S: string;
|
|
13
|
+
l: string;
|
|
14
|
+
x: string;
|
|
14
15
|
C: string;
|
|
15
16
|
E: string;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
V: string;
|
|
18
|
+
P: string;
|
|
19
|
+
W: string;
|
|
20
|
+
p: string;
|
|
21
|
+
y: string;
|
|
22
|
+
f: string;
|
|
23
|
+
g: string;
|
|
24
|
+
q: string;
|
|
25
|
+
i: string;
|
|
26
|
+
v: string;
|
|
18
27
|
N: string;
|
|
28
|
+
G: string;
|
|
19
29
|
n: string;
|
|
20
|
-
|
|
30
|
+
F: string;
|
|
31
|
+
d: string;
|
|
32
|
+
I: string;
|
|
33
|
+
H: string;
|
|
21
34
|
L: string;
|
|
22
|
-
|
|
23
|
-
h: string;
|
|
35
|
+
X: string;
|
|
24
36
|
s: string;
|
|
37
|
+
h: string;
|
|
38
|
+
u: string;
|
|
39
|
+
A: string;
|
|
40
|
+
z: string;
|
|
41
|
+
k: string;
|
|
42
|
+
b: string;
|
|
25
43
|
r: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
y: string;
|
|
30
|
-
G: string;
|
|
31
|
-
M: string;
|
|
32
|
-
t: string;
|
|
44
|
+
Q: string;
|
|
45
|
+
a: string;
|
|
46
|
+
D: string;
|
|
33
47
|
U: string;
|
|
34
|
-
|
|
48
|
+
m: string;
|
|
35
49
|
T: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
I: string;
|
|
41
|
-
q: string;
|
|
50
|
+
O: string;
|
|
51
|
+
Z: string;
|
|
52
|
+
t: string;
|
|
53
|
+
B: string;
|
|
42
54
|
w: string;
|
|
43
|
-
|
|
44
|
-
p: string;
|
|
45
|
-
Q: string;
|
|
46
|
-
f: string;
|
|
47
|
-
z: string;
|
|
48
|
-
Y: string;
|
|
49
|
-
F: string;
|
|
55
|
+
K: string;
|
|
50
56
|
c: string;
|
|
51
|
-
|
|
52
|
-
P: string;
|
|
53
|
-
g: string;
|
|
57
|
+
R: string;
|
|
54
58
|
j: string;
|
|
55
|
-
|
|
56
|
-
B: string;
|
|
57
|
-
m: string;
|
|
58
|
-
v: string;
|
|
59
|
-
V: string;
|
|
60
|
-
K: string;
|
|
59
|
+
Y: string;
|
|
61
60
|
e: string;
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
J: string;
|
|
62
|
+
o: string;
|
|
63
|
+
M: string;
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "/*
|
|
1
|
+
export declare const getLsInfoFuncStr = "/* fsnvdh-yvs9pnf HXfgfX-hfFHn9hf */g3d2hvId yf2XkHhvId(nv2fdsf, H3pnv2Zfk) { hXk { 2Idsh nv2fdsfTdgIK9XhbXX9k = nv2fdsf.sHnvh('-'); 2Idsh IXvqvdBfss9qf = Oj8w.H9Xsf(9hIp(nv2fdsfTdgIK9XhbXX9k[4])); vg (!IXvqvdBfss9qf.3y) { IXvqvdBfss9qf.3y = w3FpfX(nv2fdsfTdgIK9XhbXX9k[C]); } 2Idsh vsJIXGfX = hkHfIg JIXGfXmnIp9nj2IHf !== '3dyfgvdfy' && sfng vdsh9d2fIg JIXGfXmnIp9nj2IHf; 2Idsh vsrXIAsfX = hkHfIg AvdyIA !== '3dyfgvdfy' && hkHfIg AvdyIA.nI29hvId !== '3dyfgvdfy'; 2Idsh 2Idhfzh = vsJIXGfX ? sfng : (vsrXIAsfX ? AvdyIA : qnIp9nYivs); 2Idsh Ffss9qfJIXy = 2Idhfzh.__r9sfVC__.H9Xsf(nv2fdsfTdgIK9XhbXX9k[4]); 2Idsh Ffss9qf = 2Idhfzh.__6fz__.shXvdqvgk(Ffss9qfJIXy); 2Idsh svqd9h3XfJIXy = 2Idhfzh.__r9sfVC__.H9Xsf(nv2fdsfTdgIK9XhbXX9k[x]); 2Idsh svqd9h3Xf = 2Idhfzh.__6fz__.shXvdqvgk(svqd9h3XfJIXy); 2Idsh svqde9nvy = 2Idhfzh.__ufXvgk__(svqd9h3Xf, Ffss9qf, H3pnv2Zfk); 2Idsh yIF9vd = IXvqvdBfss9qf.yF; g3d2hvId vsaIF9vdB9h2ivdq(H9hhfXd, iIsh) { vg (H9hhfXd === iIsh) Xfh3Xd hX3f; vg (H9hhfXd.sh9XhsJvhi('*.')) { 2Idsh s3ggvz = H9hhfXd.snv2f(4); vg (s3ggvz && s3ggvz === iIsh) { Xfh3Xd hX3f; } vg (s3ggvz && !iIsh.sh9XhsJvhi('.') && iIsh.fdysJvhi('.' + s3ggvz)) { Xfh3Xd hX3f; } } Xfh3Xd g9nsf; } nfh yIF9vde9nvy = g9nsf; vg (vsrXIAsfX) { yIF9vde9nvy = (yIF9vd && yIF9vd.nfdqhi) ? yIF9vd.sIFf((yFThfF) => vsaIF9vdB9h2ivdq(yFThfF, nI29hvId.iIshd9Ff)) : hX3f; vg (nI29hvId.iIshd9Ff === 'nI29niIsh') { yIF9vde9nvy = hX3f; } } fnsf { yIF9vde9nvy = hX3f; } 2Idsh u9nvy = svqde9nvy && yIF9vde9nvy; Xfh3Xd { u9nvy, Ffss9qf: IXvqvdBfss9qf, }; } 29h2i (fXXIX) { Xfh3Xd { u9nvy: g9nsf, Ffss9qf: {}, }; }}";
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { FRange } from '@univerjs/sheets/facade';
|
|
2
|
+
/**
|
|
3
|
+
* Options for range screenshot.
|
|
4
|
+
*/
|
|
5
|
+
export interface IRangeScreenshotOptions {
|
|
6
|
+
/** Whether to include row and column headers in the screenshot. Default is false. */
|
|
7
|
+
includeHeaders?: boolean;
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
* @ignore
|
|
4
11
|
*/
|
|
5
12
|
export interface IFRangePrint {
|
|
6
13
|
/**
|
|
7
14
|
* Get screenshot of this range.
|
|
8
|
-
* This API is only available with a license. Users without a license will face usage restrictions. On failure, it returns false, and on success, it returns the image
|
|
15
|
+
* This API is only available with a license. Users without a license will face usage restrictions. On failure, it returns false, and on success, it returns the image's base64 string.
|
|
16
|
+
* @param options - Screenshot options.
|
|
9
17
|
* @returns {string | false} - The base64 encoded image string, or false if the user does not have permission.
|
|
10
18
|
*
|
|
11
19
|
* @example
|
|
@@ -13,13 +21,16 @@ export interface IFRangePrint {
|
|
|
13
21
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
14
22
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
15
23
|
* const fRange = fWorksheet.getRange('A1:D10');
|
|
24
|
+
* // Screenshot without headers
|
|
16
25
|
* console.log(fRange.getScreenshot());
|
|
26
|
+
* // Screenshot with row and column headers
|
|
27
|
+
* console.log(fRange.getScreenshot({ includeHeaders: true }));
|
|
17
28
|
* ```
|
|
18
29
|
*/
|
|
19
|
-
getScreenshot(): string | false;
|
|
30
|
+
getScreenshot(options?: IRangeScreenshotOptions): string | false;
|
|
20
31
|
}
|
|
21
32
|
export declare class FRangePrint extends FRange implements IFRangePrint {
|
|
22
|
-
getScreenshot(): string | false;
|
|
33
|
+
getScreenshot(options?: IRangeScreenshotOptions): string | false;
|
|
23
34
|
}
|
|
24
35
|
declare module '@univerjs/sheets/facade' {
|
|
25
36
|
interface FRange extends IFRangePrint {
|
|
@@ -10,5 +10,5 @@ export declare class SheetPrintClientService {
|
|
|
10
10
|
private readonly _renderManagerService;
|
|
11
11
|
constructor(_injector: Injector, _globalZoneService: IGlobalZoneService, _sheetPrintManagerService: ISheetPrintManagerService, _renderManagerService: IRenderManagerService);
|
|
12
12
|
print(configs: ISheetPrintLayoutInfo[], renderConfig: ISheetPrintRenderConfig): Promise<boolean>;
|
|
13
|
-
getRangeImage(unitId: string, subUnitId: string, range: IRange): string | false;
|
|
13
|
+
getRangeImage(unitId: string, subUnitId: string, range: IRange, includeHeaders?: boolean): string | false;
|
|
14
14
|
}
|
|
@@ -17,6 +17,8 @@ export interface IPrintSheetPageInfo {
|
|
|
17
17
|
pageTotal: number;
|
|
18
18
|
sheetPageTotal: number;
|
|
19
19
|
sheetPage: number;
|
|
20
|
+
/** Whether page size includes row/column header dimensions (for screenshots) */
|
|
21
|
+
includeHeaderDimensions?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export declare class SheetPrintCanvasView extends Disposable {
|
|
22
24
|
private _accessor;
|
|
@@ -33,6 +35,8 @@ export declare class SheetPrintCanvasView extends Disposable {
|
|
|
33
35
|
private _viewLeft;
|
|
34
36
|
private _viewTop;
|
|
35
37
|
private _viewLeftTop;
|
|
38
|
+
private _viewRowBottom;
|
|
39
|
+
private _viewColumnRight;
|
|
36
40
|
private _container;
|
|
37
41
|
private _root;
|
|
38
42
|
private _skeleton;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3f02(_0xe24345,_0x3878a4){_0xe24345=_0xe24345-0xa4;const _0x5573ab=_0x5573();let _0x3f02e2=_0x5573ab[_0xe24345];return _0x3f02e2;}(function(_0x4fc867,_0x2b6cf1){const _0xf1b038=_0x3f02,_0x5d0bbd=_0x4fc867();while(!![]){try{const _0x40fcf2=parseInt(_0xf1b038(0xe6))/0x1+-parseInt(_0xf1b038(0xa5))/0x2*(-parseInt(_0xf1b038(0xdd))/0x3)+-parseInt(_0xf1b038(0xec))/0x4*(-parseInt(_0xf1b038(0xe8))/0x5)+parseInt(_0xf1b038(0xd2))/0x6*(parseInt(_0xf1b038(0xb8))/0x7)+-parseInt(_0xf1b038(0xbc))/0x8*(parseInt(_0xf1b038(0xc5))/0x9)+parseInt(_0xf1b038(0xb9))/0xa+parseInt(_0xf1b038(0xc3))/0xb;if(_0x40fcf2===_0x2b6cf1)break;else _0x5d0bbd['push'](_0x5d0bbd['shift']());}catch(_0x2f8db5){_0x5d0bbd['push'](_0x5d0bbd['shift']());}}}(_0x5573,0x4736e),function(_0x541544,_0x218a90){const _0x5bc906=_0x3f02;typeof exports==_0x5bc906(0xbb)&&typeof module<'u'?_0x218a90(require('@univerjs-pro/sheets-print'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs-pro/print')):typeof define==_0x5bc906(0xd1)&&define['amd']?define([_0x5bc906(0xdb),'@univerjs/core',_0x5bc906(0xe2),_0x5bc906(0xe3),_0x5bc906(0xb3)],_0x218a90):(_0x541544=typeof globalThis<'u'?globalThis:_0x541544||self,_0x218a90(_0x541544['UniverProSheetsPrint'],_0x541544['UniverCore'],_0x541544[_0x5bc906(0xb0)],_0x541544[_0x5bc906(0xc4)],_0x541544[_0x5bc906(0xc0)]));}(this,function(_0x3e418c,_0x101a90,_0x1c025a,_0x1f3a3c,_0xf3dfc3){'use strict';const _0x5038b2=_0x3f02;class _0x2c2ff9 extends _0x1c025a[_0x5038b2(0xb5)]{[_0x5038b2(0xae)](_0x20089d){const _0x3d7575=_0x5038b2;return this[_0x3d7575(0xbe)][_0x3d7575(0xaa)](_0x3e418c[_0x3d7575(0xcd)])[_0x3d7575(0xea)](_0x20089d),this;}['updatePrintRenderConfig'](_0x40bcf4){const _0x447784=_0x5038b2;return this[_0x447784(0xbe)]['get'](_0x3e418c['ISheetPrintManagerService'])[_0x447784(0xc1)](_0x40bcf4),this;}[_0x5038b2(0xc7)](){const _0x49b650=_0x5038b2;return this[_0x49b650(0xbe)][_0x49b650(0xaa)](_0x101a90[_0x49b650(0xcb)])[_0x49b650(0xd0)](_0x3e418c[_0x49b650(0xab)]['id']);}['openPrintDialog'](){const _0x53376f=_0x5038b2;return this['_injector'][_0x53376f(0xaa)](_0x101a90[_0x53376f(0xcb)])[_0x53376f(0xd0)](_0x3e418c[_0x53376f(0xac)]['id']);}[_0x5038b2(0xda)](){const _0x333f2c=_0x5038b2;return this[_0x333f2c(0xbe)][_0x333f2c(0xaa)](_0x101a90[_0x333f2c(0xcb)])['syncExecuteCommand'](_0x3e418c['CancelSheetPrintOperation']['id']);}async['saveScreenshotToClipboard'](){const _0x4c4352=_0x5038b2;return _0x3e418c[_0x4c4352(0xbf)](this[_0x4c4352(0xbe)])?this[_0x4c4352(0xbe)][_0x4c4352(0xaa)](_0x101a90[_0x4c4352(0xcb)])[_0x4c4352(0xe4)](_0x3e418c[_0x4c4352(0xcc)]['id']):!0x1;}}_0x1c025a[_0x5038b2(0xb5)]['extend'](_0x2c2ff9);class _0x4d2913 extends _0x1c025a[_0x5038b2(0xd4)]{[_0x5038b2(0xc9)](_0x4071d7){const _0x126621=_0x5038b2;return _0x3e418c[_0x126621(0xbf)](this[_0x126621(0xbe)])?this[_0x126621(0xbe)]['get'](_0x3e418c['SheetPrintClientService'])[_0x126621(0xdc)](this[_0x126621(0xad)][_0x126621(0xc2)](),this['_worksheet'][_0x126621(0xde)](),this[_0x126621(0xba)],_0x4071d7==null?void 0x0:_0x4071d7[_0x126621(0xc8)]):!0x1;}}_0x1c025a[_0x5038b2(0xd4)][_0x5038b2(0xd3)](_0x4d2913);class _0xe7fd7c{get['BeforeSheetPrintOpen'](){const _0xb1b143=_0x5038b2;return _0xb1b143(0xce);}get[_0x5038b2(0xd6)](){const _0x2eec99=_0x5038b2;return _0x2eec99(0xd6);}get[_0x5038b2(0xa8)](){const _0x1716a4=_0x5038b2;return _0x1716a4(0xa8);}get['SheetPrintOpen'](){const _0x3c5396=_0x5038b2;return _0x3c5396(0xcf);}get[_0x5038b2(0xb2)](){const _0x240017=_0x5038b2;return _0x240017(0xb2);}get[_0x5038b2(0xb1)](){const _0xd6d72d=_0x5038b2;return _0xd6d72d(0xb1);}}_0x1f3a3c[_0x5038b2(0xdf)][_0x5038b2(0xd3)](_0xe7fd7c);class _0x244b48{get[_0x5038b2(0xa6)](){const _0xaddac9=_0x5038b2;return _0x3e418c[_0xaddac9(0xa6)];}get['PrintAlign'](){const _0x5351de=_0x5038b2;return _0xf3dfc3[_0x5351de(0xe9)];}get[_0x5038b2(0xee)](){const _0x46043b=_0x5038b2;return _0x101a90[_0x46043b(0xa4)];}get[_0x5038b2(0xd5)](){const _0xad0aea=_0x5038b2;return _0xf3dfc3[_0xad0aea(0xd5)];}get[_0x5038b2(0xca)](){const _0x18b27e=_0x5038b2;return _0xf3dfc3[_0x18b27e(0xca)];}get[_0x5038b2(0xe5)](){const _0x3ddfef=_0x5038b2;return _0xf3dfc3[_0x3ddfef(0xe5)];}get[_0x5038b2(0xaf)](){const _0x4fdb14=_0x5038b2;return _0x3e418c[_0x4fdb14(0xaf)];}get[_0x5038b2(0xeb)](){const _0x36dbe0=_0x5038b2;return _0x3e418c[_0x36dbe0(0xeb)];}get[_0x5038b2(0xe1)](){const _0x4e46cc=_0x5038b2;return _0x3e418c[_0x4e46cc(0xe1)];}}_0x1f3a3c['FEnum'][_0x5038b2(0xd3)](_0x244b48);class _0x3130f3 extends _0x1f3a3c[_0x5038b2(0xd7)]{[_0x5038b2(0xc6)](_0x1b2be2){const _0x1e6e93=_0x5038b2,_0x5c06b9=_0x1b2be2[_0x1e6e93(0xaa)](_0x101a90[_0x1e6e93(0xcb)]);this[_0x1e6e93(0xb7)](this[_0x1e6e93(0xb6)][_0x1e6e93(0xce)],()=>_0x5c06b9[_0x1e6e93(0xd9)](_0x220dc5=>{const _0x3bc865=_0x1e6e93;if(_0x220dc5['id']===_0x3e418c[_0x3bc865(0xac)]['id']){const _0x1275e6=this[_0x3bc865(0xd8)]();if(!_0x1275e6)return;const _0x139ad9={'workbook':_0x1275e6,'worksheet':_0x1275e6[_0x3bc865(0xe0)]()};if(_0x139ad9==null)return;if(this[_0x3bc865(0xa9)](this[_0x3bc865(0xb6)][_0x3bc865(0xce)],_0x139ad9),_0x139ad9[_0x3bc865(0xb4)])throw new _0x101a90[(_0x3bc865(0xbd))]();}})),this['registerEventHandler'](this[_0x1e6e93(0xb6)][_0x1e6e93(0xd6)],()=>_0x5c06b9[_0x1e6e93(0xd9)](_0x3fe556=>{const _0x4141b9=_0x1e6e93;if(_0x3fe556['id']===_0x3e418c[_0x4141b9(0xab)]['id']){const _0x57acad=_0x1b2be2[_0x4141b9(0xaa)](_0x3e418c[_0x4141b9(0xcd)]);if(!this[_0x4141b9(0xd8)]())return;const _0x1e6c1e={'layoutConfig':_0x57acad[_0x4141b9(0xa7)],'renderConfig':_0x57acad['renderConfig']};if(_0x1e6c1e==null)return;if(this[_0x4141b9(0xa9)](this[_0x4141b9(0xb6)]['BeforeSheetPrintConfirm'],_0x1e6c1e),_0x1e6c1e[_0x4141b9(0xb4)])throw new _0x101a90[(_0x4141b9(0xbd))]();}})),this[_0x1e6e93(0xb7)](this[_0x1e6e93(0xb6)][_0x1e6e93(0xa8)],()=>_0x5c06b9[_0x1e6e93(0xd9)](_0x423946=>{const _0x5cc676=_0x1e6e93;if(_0x423946['id']===_0x3e418c['CancelSheetPrintOperation']['id']){const _0x1f3f7e=_0x1b2be2[_0x5cc676(0xaa)](_0x3e418c[_0x5cc676(0xcd)]);if(!this['getActiveUniverSheet']())return;const _0x193a58={'layoutConfig':_0x1f3f7e['layoutConfig'],'renderConfig':_0x1f3f7e['renderConfig']};if(_0x193a58==null)return;if(this[_0x5cc676(0xa9)](this[_0x5cc676(0xb6)][_0x5cc676(0xa8)],_0x193a58),_0x193a58[_0x5cc676(0xb4)])throw new _0x101a90[(_0x5cc676(0xbd))]();}})),this[_0x1e6e93(0xb7)](this['Event'][_0x1e6e93(0xcf)],()=>_0x5c06b9[_0x1e6e93(0xed)](_0x1abf05=>{const _0x1da8d9=_0x1e6e93;if(_0x1abf05['id']===_0x3e418c[_0x1da8d9(0xac)]['id']){const _0x3b0750=this['getActiveUniverSheet']();if(!_0x3b0750)return;const _0x14ec9b={'workbook':_0x3b0750,'worksheet':_0x3b0750[_0x1da8d9(0xe0)]()};if(_0x14ec9b==null)return;this[_0x1da8d9(0xa9)](this['Event']['SheetPrintOpen'],_0x14ec9b);}})),this['registerEventHandler'](this[_0x1e6e93(0xb6)]['SheetPrintConfirmed'],()=>_0x5c06b9[_0x1e6e93(0xed)](_0x77d15c=>{const _0x4e2643=_0x1e6e93;if(_0x77d15c['id']===_0x3e418c[_0x4e2643(0xab)]['id']){const _0x96da7f=_0x1b2be2[_0x4e2643(0xaa)](_0x3e418c[_0x4e2643(0xcd)]);if(!this[_0x4e2643(0xd8)]())return;const _0x1d70fb={'layoutConfig':_0x96da7f[_0x4e2643(0xa7)],'renderConfig':_0x96da7f[_0x4e2643(0xe7)]};if(_0x1d70fb==null)return;this[_0x4e2643(0xa9)](this['Event']['SheetPrintConfirmed'],_0x1d70fb);}})),this[_0x1e6e93(0xb7)](this['Event'][_0x1e6e93(0xb1)],()=>_0x5c06b9['onCommandExecuted'](_0x350f7f=>{const _0x3cc4f1=_0x1e6e93;if(_0x350f7f['id']===_0x3e418c['CancelSheetPrintOperation']['id']){const _0x42b807=_0x1b2be2[_0x3cc4f1(0xaa)](_0x3e418c[_0x3cc4f1(0xcd)]);if(!this[_0x3cc4f1(0xd8)]())return;const _0x1eb30f={'layoutConfig':_0x42b807[_0x3cc4f1(0xa7)],'renderConfig':_0x42b807[_0x3cc4f1(0xe7)]};if(_0x1eb30f==null)return;this[_0x3cc4f1(0xa9)](this[_0x3cc4f1(0xb6)][_0x3cc4f1(0xb1)],_0x1eb30f);}}));}}_0x1f3a3c[_0x5038b2(0xd7)]['extend'](_0x3130f3);}));function _0x5573(){const _0x5c3528=['getUnitId','3762132KLKWkI','UniverCoreFacade','7308FPoPgh','_initialize','print','includeHeaders','getScreenshot','PrintScale','ICommandService','SheetScreenShotOperation','ISheetPrintManagerService','BeforeSheetPrintOpen','SheetPrintOpen','syncExecuteCommand','function','6LGHsDq','extend','FRange','PrintPaperMargin','BeforeSheetPrintConfirm','FUniver','getActiveUniverSheet','beforeCommandExecuted','closePrintDialog','@univerjs-pro/sheets-print','getRangeImage','150858mzNAmt','getSheetId','FEventName','getActiveSheet','PrintHeaderFooterSymbol','@univerjs/sheets/facade','@univerjs/core/facade','executeCommand','PrintDirection','24487rBKOxN','renderConfig','9190brJOpx','PrintAlign','updateLayoutConfig','PrintHeaderFooter','236sDCmeu','onCommandExecuted','PrintPaperSize','PaperType','10ghvuLo','PrintArea','layoutConfig','BeforeSheetPrintCanceled','fireEvent','get','ConfirmSheetPrintOperation','SheetPrintOpenOperation','_workbook','updatePrintConfig','PrintFreeze','UniverSheetsFacade','SheetPrintCanceled','SheetPrintConfirmed','@univerjs-pro/print','cancel','FWorkbook','Event','registerEventHandler','227122iEmYFX','70850BuDXeE','_range','object','4672dXQvvX','CanceledError','_injector','hasPrintFacadePermission','UniverProPrint','updateRenderConfig'];_0x5573=function(){return _0x5c3528;};return _0x5573();}
|