@univerjs-pro/print 0.6.4 → 0.6.5-nightly.202503131607
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x17b853=_0xdb18;(function(_0x18705b,_0x12cfbd){const _0x270d66=_0xdb18,_0xc19aae=_0x18705b();while(!![]){try{const _0x5e793c=-parseInt(_0x270d66(0x136))/0x1+-parseInt(_0x270d66(0x134))/0x2*(parseInt(_0x270d66(0x13c))/0x3)+parseInt(_0x270d66(0x132))/0x4*(-parseInt(_0x270d66(0x123))/0x5)+parseInt(_0x270d66(0x117))/0x6*(parseInt(_0x270d66(0x12c))/0x7)+parseInt(_0x270d66(0x141))/0x8*(parseInt(_0x270d66(0x144))/0x9)+-parseInt(_0x270d66(0x13d))/0xa+parseInt(_0x270d66(0x140))/0xb;if(_0x5e793c===_0x12cfbd)break;else _0xc19aae['push'](_0xc19aae['shift']());}catch(_0xa1f07a){_0xc19aae['push'](_0xc19aae['shift']());}}}(_0x6500,0xa6ff4));function _0x6500(){const _0x14ce58=['\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitHeight','PrintScale','Executive','35oxxFSj','PrintPaperMargin','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintDirection','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','348OAEGyY','createElement','15038NfteJN','Wide','885716mOksZN','Folio','Origin','className','Middle','Start','417pNHcNB','8236870mOnpeS','Letter','toStringTag','28524001QHPBPv','8mWtLOR','FitPage','offline-printing-css','12024513oIyHBF','None','Landscape','createPrintStyle','px\x20','PaperSizePxMap','style','693018uBOOmR','Narrow','PrintAlign','printing-canvas','Portrait','Custom','Legal','Tabloid','End','Normal','PRINT_CONTAINER_CLASS','FitWidth','61385IgQMxK','Statement',',\x20.','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Module'];_0x6500=function(){return _0x14ce58;};return _0x6500();}function _0xdb18(_0x32b183,_0x1134c){const _0x650045=_0x6500();return _0xdb18=function(_0xdb18df,_0xbf97a1){_0xdb18df=_0xdb18df-0x115;let _0x2bc7b6=_0x650045[_0xdb18df];return _0x2bc7b6;},_0xdb18(_0x32b183,_0x1134c);}Object[_0x17b853(0x12e)](exports,Symbol[_0x17b853(0x13f)],{'value':_0x17b853(0x127)});var e=(_0x1df503=>(_0x1df503[_0x17b853(0x13e)]=_0x17b853(0x13e),_0x1df503[_0x17b853(0x11e)]=_0x17b853(0x11e),_0x1df503[_0x17b853(0x11d)]=_0x17b853(0x11d),_0x1df503['Statement']='Statement',_0x1df503[_0x17b853(0x12b)]=_0x17b853(0x12b),_0x1df503['Folio']='Folio',_0x1df503['A3']='A3',_0x1df503['A4']='A4',_0x1df503['A5']='A5',_0x1df503['B4']='B4',_0x1df503['B5']='B5',_0x1df503))(e||{}),i=(_0x25b62a=>(_0x25b62a[_0x17b853(0x11b)]=_0x17b853(0x11b),_0x25b62a[_0x17b853(0x146)]=_0x17b853(0x146),_0x25b62a))(i||{}),c=(_0x218225=>(_0x218225['Origin']=_0x17b853(0x138),_0x218225[_0x17b853(0x122)]=_0x17b853(0x122),_0x218225[_0x17b853(0x129)]='FitHeight',_0x218225[_0x17b853(0x142)]=_0x17b853(0x142),_0x218225[_0x17b853(0x11c)]=_0x17b853(0x11c),_0x218225))(c||{}),g=(_0x5b0b5d=>(_0x5b0b5d['Start']=_0x17b853(0x13b),_0x5b0b5d[_0x17b853(0x11f)]='End',_0x5b0b5d[_0x17b853(0x13a)]=_0x17b853(0x13a),_0x5b0b5d))(g||{}),o=(_0x1d0047=>(_0x1d0047[_0x17b853(0x120)]='Normal',_0x1d0047['Narrow']=_0x17b853(0x118),_0x1d0047[_0x17b853(0x135)]=_0x17b853(0x135),_0x1d0047[_0x17b853(0x145)]=_0x17b853(0x145),_0x1d0047))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x17b853(0x137)]]:{'w':0x330,'h':0x4e0},[e[_0x17b853(0x11d)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x17b853(0x124)]]:{'w':0x210,'h':0x330},[e[_0x17b853(0x11e)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x17b853(0x118)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x17b853(0x135)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x17b853(0x145)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x17b853(0x11a);function A(_0x4c948c,_0xb56a95){const _0x388c42=_0x17b853,{w:_0x59a515,h:_0x249c3e}=m[_0x4c948c],_0x185bc5=_0xb56a95===i[_0x388c42(0x11b)]?_0x59a515:_0x249c3e,_0x4a204d=_0xb56a95===i[_0x388c42(0x11b)]?_0x249c3e:_0x59a515,_0x1455e4='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x185bc5+_0x388c42(0x148)+_0x4a204d+_0x388c42(0x126)+n+_0x388c42(0x125)+n+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+p+_0x388c42(0x128)+_0x4a204d+_0x388c42(0x131)+_0x185bc5+_0x388c42(0x12f),_0x1b1950=document[_0x388c42(0x133)](_0x388c42(0x116));return _0x1b1950['innerHTML']=_0x1455e4,_0x1b1950[_0x388c42(0x139)]=_0x388c42(0x143),_0x1b1950;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x17b853(0x121)]=n,exports['PaperMarginMap']=N,exports[_0x17b853(0x115)]=m,exports[_0x17b853(0x119)]=g,exports[_0x17b853(0x130)]=i,exports[_0x17b853(0x12d)]=o,exports['PrintPaperSize']=e,exports[_0x17b853(0x12a)]=c,exports[_0x17b853(0x147)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0xf74a78=_0x4534;function _0x1ec0(){const _0xe1dd17=['FitHeight','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','205nykDiq','FitPage','23175196HcOqNY','style','71912yHwScL','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Folio','Letter','Narrow','Middle','672tHmBwY','className','Statement','FitWidth','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Normal','14490020bTJUEo','23067ofdBCe','Portrait','99TCVJxQ','6684237NhaUvP','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','37159bRdDSs','px\x20','Origin','End','printing-canvas','Custom','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide',',\x20.','printing-canvas-container','innerHTML','None','Tabloid','createElement','Legal','24WcIwlo','17742hpuuug'];_0x1ec0=function(){return _0xe1dd17;};return _0x1ec0();}(function(_0x5c1ea1,_0x1d074d){const _0x315adc=_0x4534,_0x43c68b=_0x5c1ea1();while(!![]){try{const _0x9e1afa=-parseInt(_0x315adc(0x16b))/0x1*(parseInt(_0x315adc(0x17b))/0x2)+-parseInt(_0x315adc(0x166))/0x3*(-parseInt(_0x315adc(0x15f))/0x4)+parseInt(_0x315adc(0x17f))/0x5*(parseInt(_0x315adc(0x17c))/0x6)+-parseInt(_0x315adc(0x169))/0x7+-parseInt(_0x315adc(0x159))/0x8*(-parseInt(_0x315adc(0x168))/0x9)+-parseInt(_0x315adc(0x165))/0xa+parseInt(_0x315adc(0x157))/0xb;if(_0x9e1afa===_0x1d074d)break;else _0x43c68b['push'](_0x43c68b['shift']());}catch(_0x14291a){_0x43c68b['push'](_0x43c68b['shift']());}}}(_0x1ec0,0xbbb87));function _0x4534(_0x1f1e19,_0x561396){const _0x1ec090=_0x1ec0();return _0x4534=function(_0x453483,_0x4f4945){_0x453483=_0x453483-0x156;let _0x554746=_0x1ec090[_0x453483];return _0x554746;},_0x4534(_0x1f1e19,_0x561396);}var o=(_0x2e3a8d=>(_0x2e3a8d['Letter']='Letter',_0x2e3a8d['Tabloid']='Tabloid',_0x2e3a8d[_0xf74a78(0x17a)]=_0xf74a78(0x17a),_0x2e3a8d[_0xf74a78(0x161)]=_0xf74a78(0x161),_0x2e3a8d['Executive']='Executive',_0x2e3a8d['Folio']=_0xf74a78(0x15b),_0x2e3a8d['A3']='A3',_0x2e3a8d['A4']='A4',_0x2e3a8d['A5']='A5',_0x2e3a8d['B4']='B4',_0x2e3a8d['B5']='B5',_0x2e3a8d))(o||{}),i=(_0x20f863=>(_0x20f863[_0xf74a78(0x167)]=_0xf74a78(0x167),_0x20f863['Landscape']='Landscape',_0x20f863))(i||{}),w=(_0x234a25=>(_0x234a25[_0xf74a78(0x16d)]=_0xf74a78(0x16d),_0x234a25[_0xf74a78(0x162)]=_0xf74a78(0x162),_0x234a25[_0xf74a78(0x17d)]=_0xf74a78(0x17d),_0x234a25[_0xf74a78(0x156)]='FitPage',_0x234a25[_0xf74a78(0x170)]=_0xf74a78(0x170),_0x234a25))(w||{}),m=(_0x56aa25=>(_0x56aa25[_0xf74a78(0x171)]='Start',_0x56aa25['End']=_0xf74a78(0x16e),_0x56aa25[_0xf74a78(0x15e)]=_0xf74a78(0x15e),_0x56aa25))(m||{}),e=(_0x179605=>(_0x179605['Normal']=_0xf74a78(0x164),_0x179605[_0xf74a78(0x15d)]=_0xf74a78(0x15d),_0x179605[_0xf74a78(0x173)]=_0xf74a78(0x173),_0x179605[_0xf74a78(0x177)]=_0xf74a78(0x177),_0x179605))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o[_0xf74a78(0x17a)]]:{'w':0x330,'h':0x540},[o[_0xf74a78(0x15c)]]:{'w':0x330,'h':0x420},[o[_0xf74a78(0x161)]]:{'w':0x210,'h':0x330},[o[_0xf74a78(0x178)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xf74a78(0x15d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xf74a78(0x175),p=_0xf74a78(0x16f);function N(_0x3c246b,_0x52391d){const _0x12bf6b=_0xf74a78,{w:_0x138237,h:_0x2e1cc7}=g[_0x3c246b],_0x5c176f=_0x52391d===i[_0x12bf6b(0x167)]?_0x138237:_0x2e1cc7,_0x8847b1=_0x52391d===i[_0x12bf6b(0x167)]?_0x2e1cc7:_0x138237,_0x26fdbf='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5c176f+_0x12bf6b(0x16c)+_0x8847b1+_0x12bf6b(0x163)+l+_0x12bf6b(0x174)+l+_0x12bf6b(0x17e)+p+_0x12bf6b(0x172)+_0x8847b1+_0x12bf6b(0x16a)+_0x5c176f+_0x12bf6b(0x15a),_0x3de92e=document[_0x12bf6b(0x179)](_0x12bf6b(0x158));return _0x3de92e[_0x12bf6b(0x176)]=_0x26fdbf,_0x3de92e[_0x12bf6b(0x160)]='offline-printing-css',_0x3de92e;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5014(){const _0xe9e789=['px\x20','Folio','createPrintStyle','End','Tabloid','Landscape','UniverProPrint','Module','toStringTag','Custom','FitWidth','Start','38769HlkzrR','PrintScale','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintPaperMargin','2557560ODaDfi','Executive','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Narrow','printing-canvas','Normal','124TooYFA','amd','Wide','function','20IGJOZQ','Statement','5022mneYKJ','PRINT_CONTAINER_CLASS','PaperSizePxMap','1320416pPWjAT','None','Origin','Letter','26XvyRsy','321MwjsWJ','object','PrintAlign','Middle','FitHeight','1553486VKvTuZ','style','Portrait','className','7UTIDTU','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','42NVGoJF','defineProperty','292419ZWCqRn','235TutgFm','PaperMarginMap','PrintPaperSize','Legal'];_0x5014=function(){return _0xe9e789;};return _0x5014();}function _0x4741(_0x491a92,_0x1b98e9){const _0x5014c6=_0x5014();return _0x4741=function(_0x47415c,_0x53e603){_0x47415c=_0x47415c-0x13e;let _0x4670f4=_0x5014c6[_0x47415c];return _0x4670f4;},_0x4741(_0x491a92,_0x1b98e9);}(function(_0x48cb4e,_0x55feb5){const _0x261c59=_0x4741,_0x306b0f=_0x48cb4e();while(!![]){try{const _0x168f5f=-parseInt(_0x261c59(0x167))/0x1*(-parseInt(_0x261c59(0x172))/0x2)+-parseInt(_0x261c59(0x14e))/0x3*(parseInt(_0x261c59(0x159))/0x4)+-parseInt(_0x261c59(0x13e))/0x5*(parseInt(_0x261c59(0x15f))/0x6)+parseInt(_0x261c59(0x170))/0x7*(parseInt(_0x261c59(0x162))/0x8)+parseInt(_0x261c59(0x174))/0x9*(-parseInt(_0x261c59(0x15d))/0xa)+parseInt(_0x261c59(0x16c))/0xb+parseInt(_0x261c59(0x153))/0xc*(parseInt(_0x261c59(0x166))/0xd);if(_0x168f5f===_0x55feb5)break;else _0x306b0f['push'](_0x306b0f['shift']());}catch(_0x313e1b){_0x306b0f['push'](_0x306b0f['shift']());}}}(_0x5014,0x39369),function(_0x585716,_0x32d448){const _0x1d6c1a=_0x4741;typeof exports==_0x1d6c1a(0x168)&&typeof module<'u'?_0x32d448(exports):typeof define==_0x1d6c1a(0x15c)&&define[_0x1d6c1a(0x15a)]?define(['exports'],_0x32d448):(_0x585716=typeof globalThis<'u'?globalThis:_0x585716||self,_0x32d448(_0x585716[_0x1d6c1a(0x148)]={}));}(this,function(_0x293449){'use strict';const _0x4e9cef=_0x4741;var _0xa6be1d=(_0x566c67=>(_0x566c67[_0x4e9cef(0x165)]='Letter',_0x566c67['Tabloid']=_0x4e9cef(0x146),_0x566c67[_0x4e9cef(0x141)]=_0x4e9cef(0x141),_0x566c67[_0x4e9cef(0x15e)]=_0x4e9cef(0x15e),_0x566c67[_0x4e9cef(0x154)]=_0x4e9cef(0x154),_0x566c67[_0x4e9cef(0x143)]=_0x4e9cef(0x143),_0x566c67['A3']='A3',_0x566c67['A4']='A4',_0x566c67['A5']='A5',_0x566c67['B4']='B4',_0x566c67['B5']='B5',_0x566c67))(_0xa6be1d||{}),_0x2e51a9=(_0x5945bc=>(_0x5945bc[_0x4e9cef(0x16e)]=_0x4e9cef(0x16e),_0x5945bc[_0x4e9cef(0x147)]=_0x4e9cef(0x147),_0x5945bc))(_0x2e51a9||{}),_0x1274be=(_0x1650a4=>(_0x1650a4['Origin']=_0x4e9cef(0x164),_0x1650a4[_0x4e9cef(0x14c)]=_0x4e9cef(0x14c),_0x1650a4['FitHeight']=_0x4e9cef(0x16b),_0x1650a4[_0x4e9cef(0x150)]=_0x4e9cef(0x150),_0x1650a4['Custom']=_0x4e9cef(0x14b),_0x1650a4))(_0x1274be||{}),_0x234fb1=(_0x42503f=>(_0x42503f[_0x4e9cef(0x14d)]=_0x4e9cef(0x14d),_0x42503f['End']=_0x4e9cef(0x145),_0x42503f[_0x4e9cef(0x16a)]='Middle',_0x42503f))(_0x234fb1||{}),_0x5269b8=(_0x36f7cf=>(_0x36f7cf[_0x4e9cef(0x158)]=_0x4e9cef(0x158),_0x36f7cf[_0x4e9cef(0x156)]='Narrow',_0x36f7cf[_0x4e9cef(0x15b)]=_0x4e9cef(0x15b),_0x36f7cf['None']='None',_0x36f7cf))(_0x5269b8||{});const _0x1e88a0={[_0xa6be1d['A3']]:{'w':0x463,'h':0x633},[_0xa6be1d['A4']]:{'w':0x31a,'h':0x464},[_0xa6be1d['A5']]:{'w':0x22f,'h':0x31a},[_0xa6be1d['B4']]:{'w':0x3b0,'h':0x540},[_0xa6be1d['B5']]:{'w':0x299,'h':0x3b0},[_0xa6be1d[_0x4e9cef(0x154)]]:{'w':0x2b8,'h':0x3f0},[_0xa6be1d[_0x4e9cef(0x143)]]:{'w':0x330,'h':0x4e0},[_0xa6be1d[_0x4e9cef(0x141)]]:{'w':0x330,'h':0x540},[_0xa6be1d['Letter']]:{'w':0x330,'h':0x420},[_0xa6be1d[_0x4e9cef(0x15e)]]:{'w':0x210,'h':0x330},[_0xa6be1d[_0x4e9cef(0x146)]]:{'w':0x420,'h':0x660}},_0x20e86a={[_0x5269b8[_0x4e9cef(0x158)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5269b8['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5269b8[_0x4e9cef(0x15b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5269b8[_0x4e9cef(0x163)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x5b42f2='printing-canvas-container',_0x1c621f=_0x4e9cef(0x157);function _0x18155f(_0x362081,_0x592aed){const _0x507b98=_0x4e9cef,{w:_0x8b035a,h:_0x56c5de}=_0x1e88a0[_0x362081],_0x1b14e7=_0x592aed===_0x2e51a9['Portrait']?_0x8b035a:_0x56c5de,_0x2d10eb=_0x592aed===_0x2e51a9[_0x507b98(0x16e)]?_0x56c5de:_0x8b035a,_0x30d32c='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x1b14e7+_0x507b98(0x142)+_0x2d10eb+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x5b42f2+',\x20.'+_0x5b42f2+_0x507b98(0x155)+_0x1c621f+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x2d10eb+_0x507b98(0x151)+_0x1b14e7+_0x507b98(0x171),_0x460359=document['createElement'](_0x507b98(0x16d));return _0x460359['innerHTML']=_0x30d32c,_0x460359[_0x507b98(0x16f)]='offline-printing-css',_0x460359;}_0x293449['PRINT_CANVAS_CLASS']=_0x1c621f,_0x293449[_0x4e9cef(0x160)]=_0x5b42f2,_0x293449[_0x4e9cef(0x13f)]=_0x20e86a,_0x293449[_0x4e9cef(0x161)]=_0x1e88a0,_0x293449[_0x4e9cef(0x169)]=_0x234fb1,_0x293449['PrintDirection']=_0x2e51a9,_0x293449[_0x4e9cef(0x152)]=_0x5269b8,_0x293449[_0x4e9cef(0x140)]=_0xa6be1d,_0x293449[_0x4e9cef(0x14f)]=_0x1274be,_0x293449[_0x4e9cef(0x144)]=_0x18155f,Object[_0x4e9cef(0x173)](_0x293449,Symbol[_0x4e9cef(0x14a)],{'value':_0x4e9cef(0x149)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5-nightly.202503131607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
|
-
"vite": "^6.2.
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
46
|
+
"vite": "^6.2.1",
|
|
47
|
+
"vitest": "^3.0.8",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|