@univerjs-pro/print 0.5.3 → 0.5.4
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x279591=_0x7b8a;function _0xf035(){const _0x224922=['PRINT_CANVAS_CLASS','Statement','None','innerHTML','672794zJlkcG','Normal','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','px\x20','PrintAlign','FitWidth','5xzIEld','774251pYmXgm','PrintDirection','End','FitPage','style','Custom','createElement','Origin','Narrow','PrintPaperMargin','Start','FitHeight','6zwyAIC','2768412JrFjjC','Executive','2628346lHXpJX','Legal','PRINT_CONTAINER_CLASS','printing-canvas','Wide','Middle','PaperSizePxMap','Folio',',\x20.','toStringTag','printing-canvas-container','Landscape','PrintPaperSize','189636vHGiaB','PaperMarginMap','Module','offline-printing-css','4482096YAdjUM','12520953aCHBQk','Tabloid'];_0xf035=function(){return _0x224922;};return _0xf035();}(function(_0x49847b,_0x51784b){const _0xc6cf8d=_0x7b8a,_0x3447ac=_0x49847b();while(!![]){try{const _0x297f5b=parseInt(_0xc6cf8d(0x1bd))/0x1+parseInt(_0xc6cf8d(0x1b4))/0x2+-parseInt(_0xc6cf8d(0x1ca))/0x3+parseInt(_0xc6cf8d(0x1a9))/0x4*(-parseInt(_0xc6cf8d(0x1bc))/0x5)+-parseInt(_0xc6cf8d(0x1c9))/0x6*(parseInt(_0xc6cf8d(0x19c))/0x7)+-parseInt(_0xc6cf8d(0x1ad))/0x8+parseInt(_0xc6cf8d(0x1ae))/0x9;if(_0x297f5b===_0x51784b)break;else _0x3447ac['push'](_0x3447ac['shift']());}catch(_0x2bfc49){_0x3447ac['push'](_0x3447ac['shift']());}}}(_0xf035,0x917c8));function _0x7b8a(_0x2f2351,_0x1f8321){const _0xf0359e=_0xf035();return _0x7b8a=function(_0x7b8a10,_0x4bffe6){_0x7b8a10=_0x7b8a10-0x19c;let _0x1e6be7=_0xf0359e[_0x7b8a10];return _0x1e6be7;},_0x7b8a(_0x2f2351,_0x1f8321);}Object['defineProperty'](exports,Symbol[_0x279591(0x1a5)],{'value':_0x279591(0x1ab)});var e=(_0x2e0b86=>(_0x2e0b86['Letter']='Letter',_0x2e0b86[_0x279591(0x1af)]=_0x279591(0x1af),_0x2e0b86[_0x279591(0x19d)]='Legal',_0x2e0b86[_0x279591(0x1b1)]=_0x279591(0x1b1),_0x2e0b86[_0x279591(0x1cb)]=_0x279591(0x1cb),_0x2e0b86[_0x279591(0x1a3)]=_0x279591(0x1a3),_0x2e0b86['A3']='A3',_0x2e0b86['A4']='A4',_0x2e0b86['A5']='A5',_0x2e0b86['B4']='B4',_0x2e0b86['B5']='B5',_0x2e0b86))(e||{}),i=(_0x5da9c9=>(_0x5da9c9[_0x279591(0x1b6)]='Portrait',_0x5da9c9[_0x279591(0x1a7)]=_0x279591(0x1a7),_0x5da9c9))(i||{}),c=(_0x461b23=>(_0x461b23[_0x279591(0x1c4)]=_0x279591(0x1c4),_0x461b23[_0x279591(0x1bb)]=_0x279591(0x1bb),_0x461b23[_0x279591(0x1c8)]=_0x279591(0x1c8),_0x461b23[_0x279591(0x1c0)]='FitPage',_0x461b23[_0x279591(0x1c2)]='Custom',_0x461b23))(c||{}),g=(_0x4fb286=>(_0x4fb286[_0x279591(0x1c7)]=_0x279591(0x1c7),_0x4fb286['End']=_0x279591(0x1bf),_0x4fb286[_0x279591(0x1a1)]=_0x279591(0x1a1),_0x4fb286))(g||{}),o=(_0x257146=>(_0x257146[_0x279591(0x1b5)]='Normal',_0x257146[_0x279591(0x1c5)]=_0x279591(0x1c5),_0x257146[_0x279591(0x1a0)]=_0x279591(0x1a0),_0x257146[_0x279591(0x1b2)]='None',_0x257146))(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[_0x279591(0x1a3)]]:{'w':0x330,'h':0x4e0},[e[_0x279591(0x19d)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x279591(0x1b1)]]:{'w':0x210,'h':0x330},[e[_0x279591(0x1af)]]:{'w':0x420,'h':0x660}},N={[o[_0x279591(0x1b5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x279591(0x1a0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x279591(0x1b2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x279591(0x1a6),p=_0x279591(0x19f);function A(_0x3303ab,_0x497d9e){const _0x2339cd=_0x279591,{w:_0x2624bd,h:_0x4f254a}=m[_0x3303ab],_0x4c738c=_0x497d9e===i['Portrait']?_0x2624bd:_0x4f254a,_0xe71f97=_0x497d9e===i['Portrait']?_0x4f254a:_0x2624bd,_0x19bff7='\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'+_0x4c738c+_0x2339cd(0x1b9)+_0xe71f97+_0x2339cd(0x1b8)+n+_0x2339cd(0x1a4)+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+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0xe71f97+_0x2339cd(0x1b7)+_0x4c738c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x13e335=document[_0x2339cd(0x1c3)](_0x2339cd(0x1c1));return _0x13e335[_0x2339cd(0x1b3)]=_0x19bff7,_0x13e335['className']=_0x2339cd(0x1ac),_0x13e335;}exports[_0x279591(0x1b0)]=p,exports[_0x279591(0x19e)]=n,exports[_0x279591(0x1aa)]=N,exports[_0x279591(0x1a2)]=m,exports[_0x279591(0x1ba)]=g,exports[_0x279591(0x1be)]=i,exports[_0x279591(0x1c6)]=o,exports[_0x279591(0x1a8)]=e,exports['PrintScale']=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x441384=_0x31c4;(function(_0x581cac,_0x43eb48){const _0x4cdba6=_0x31c4,_0x5ec814=_0x581cac();while(!![]){try{const _0x4a852a=-parseInt(_0x4cdba6(0x8e))/0x1+parseInt(_0x4cdba6(0x73))/0x2+-parseInt(_0x4cdba6(0x92))/0x3+-parseInt(_0x4cdba6(0x82))/0x4+-parseInt(_0x4cdba6(0x70))/0x5+parseInt(_0x4cdba6(0x86))/0x6+parseInt(_0x4cdba6(0x81))/0x7;if(_0x4a852a===_0x43eb48)break;else _0x5ec814['push'](_0x5ec814['shift']());}catch(_0x43f9ae){_0x5ec814['push'](_0x5ec814['shift']());}}}(_0x5820,0xc1c34));function _0x31c4(_0x503f9d,_0x2e8ae6){const _0x582036=_0x5820();return _0x31c4=function(_0x31c4ab,_0x1ef055){_0x31c4ab=_0x31c4ab-0x70;let _0x1fcf4=_0x582036[_0x31c4ab];return _0x1fcf4;},_0x31c4(_0x503f9d,_0x2e8ae6);}var o=(_0x4a4b41=>(_0x4a4b41[_0x441384(0x89)]=_0x441384(0x89),_0x4a4b41[_0x441384(0x8a)]=_0x441384(0x8a),_0x4a4b41[_0x441384(0x7e)]=_0x441384(0x7e),_0x4a4b41[_0x441384(0x7c)]=_0x441384(0x7c),_0x4a4b41[_0x441384(0x7a)]='Executive',_0x4a4b41[_0x441384(0x71)]=_0x441384(0x71),_0x4a4b41['A3']='A3',_0x4a4b41['A4']='A4',_0x4a4b41['A5']='A5',_0x4a4b41['B4']='B4',_0x4a4b41['B5']='B5',_0x4a4b41))(o||{}),i=(_0x10178a=>(_0x10178a[_0x441384(0x80)]='Portrait',_0x10178a[_0x441384(0x7d)]=_0x441384(0x7d),_0x10178a))(i||{}),w=(_0x526a05=>(_0x526a05[_0x441384(0x94)]='Origin',_0x526a05[_0x441384(0x84)]=_0x441384(0x84),_0x526a05['FitHeight']='FitHeight',_0x526a05[_0x441384(0x8b)]=_0x441384(0x8b),_0x526a05[_0x441384(0x93)]=_0x441384(0x93),_0x526a05))(w||{}),m=(_0x258866=>(_0x258866[_0x441384(0x7f)]=_0x441384(0x7f),_0x258866[_0x441384(0x95)]=_0x441384(0x95),_0x258866['Middle']=_0x441384(0x77),_0x258866))(m||{}),e=(_0x443eb9=>(_0x443eb9[_0x441384(0x72)]=_0x441384(0x72),_0x443eb9['Narrow']=_0x441384(0x83),_0x443eb9[_0x441384(0x75)]=_0x441384(0x75),_0x443eb9[_0x441384(0x90)]=_0x441384(0x90),_0x443eb9))(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[_0x441384(0x7a)]]:{'w':0x2b8,'h':0x3f0},[o[_0x441384(0x71)]]:{'w':0x330,'h':0x4e0},[o[_0x441384(0x7e)]]:{'w':0x330,'h':0x540},[o[_0x441384(0x89)]]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o[_0x441384(0x8a)]]:{'w':0x420,'h':0x660}},v={[e[_0x441384(0x72)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x441384(0x83)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x441384(0x90)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x441384(0x74),p=_0x441384(0x85);function N(_0x4fd4a5,_0x30bc56){const _0x4a337c=_0x441384,{w:_0x2b47b9,h:_0x12a7c4}=g[_0x4fd4a5],_0xb0bb91=_0x30bc56===i[_0x4a337c(0x80)]?_0x2b47b9:_0x12a7c4,_0x348fb1=_0x30bc56===i[_0x4a337c(0x80)]?_0x12a7c4:_0x2b47b9,_0x444744='\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'+_0xb0bb91+_0x4a337c(0x79)+_0x348fb1+_0x4a337c(0x88)+l+_0x4a337c(0x76)+l+_0x4a337c(0x78)+p+_0x4a337c(0x8f)+_0x348fb1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xb0bb91+_0x4a337c(0x8c),_0x5740eb=document[_0x4a337c(0x7b)](_0x4a337c(0x91));return _0x5740eb[_0x4a337c(0x87)]=_0x444744,_0x5740eb[_0x4a337c(0x8d)]='offline-printing-css',_0x5740eb;}function _0x5820(){const _0x3b4913=['None','style','4634706jMYOLP','Custom','Origin','End','4712890tbrCmI','Folio','Normal','224396wwyrbW','printing-canvas-container','Wide',',\x20.','Middle','\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.','px\x20','Executive','createElement','Statement','Landscape','Legal','Start','Portrait','32865021woppRO','1668308cwPGOi','Narrow','FitWidth','printing-canvas','134340qQaYUB','innerHTML','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.','Letter','Tabloid','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','className','1131382uuAjem','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x5820=function(){return _0x3b4913;};return _0x5820();}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(_0x5449ba,_0x57981c){const _0x5d6568=_0x5aa9,_0x3a2e5c=_0x5449ba();while(!![]){try{const _0x3fd298=-parseInt(_0x5d6568(0xbb))/0x1+parseInt(_0x5d6568(0xd8))/0x2*(parseInt(_0x5d6568(0xe6))/0x3)+-parseInt(_0x5d6568(0xbc))/0x4+parseInt(_0x5d6568(0xe8))/0x5*(parseInt(_0x5d6568(0xca))/0x6)+-parseInt(_0x5d6568(0xd2))/0x7*(-parseInt(_0x5d6568(0xe5))/0x8)+parseInt(_0x5d6568(0xbe))/0x9*(-parseInt(_0x5d6568(0xba))/0xa)+parseInt(_0x5d6568(0xe9))/0xb;if(_0x3fd298===_0x57981c)break;else _0x3a2e5c['push'](_0x3a2e5c['shift']());}catch(_0x1d7496){_0x3a2e5c['push'](_0x3a2e5c['shift']());}}}(_0x4d8d,0x30f96),function(_0x5dfa4c,_0x4b6667){const _0x1180e1=_0x5aa9;typeof exports==_0x1180e1(0xc4)&&typeof module<'u'?_0x4b6667(exports):typeof define=='function'&&define[_0x1180e1(0xea)]?define([_0x1180e1(0xde)],_0x4b6667):(_0x5dfa4c=typeof globalThis<'u'?globalThis:_0x5dfa4c||self,_0x4b6667(_0x5dfa4c[_0x1180e1(0xc2)]={}));}(this,function(_0x2982c2){'use strict';const _0x32684d=_0x5aa9;var _0x377d80=(_0x5b64a8=>(_0x5b64a8[_0x32684d(0xd1)]=_0x32684d(0xd1),_0x5b64a8[_0x32684d(0xdb)]=_0x32684d(0xdb),_0x5b64a8[_0x32684d(0xc8)]=_0x32684d(0xc8),_0x5b64a8[_0x32684d(0xb8)]=_0x32684d(0xb8),_0x5b64a8[_0x32684d(0xc7)]=_0x32684d(0xc7),_0x5b64a8[_0x32684d(0xd5)]=_0x32684d(0xd5),_0x5b64a8['A3']='A3',_0x5b64a8['A4']='A4',_0x5b64a8['A5']='A5',_0x5b64a8['B4']='B4',_0x5b64a8['B5']='B5',_0x5b64a8))(_0x377d80||{}),_0x5f4fe5=(_0x2b77f3=>(_0x2b77f3[_0x32684d(0xbf)]=_0x32684d(0xbf),_0x2b77f3[_0x32684d(0xc9)]=_0x32684d(0xc9),_0x2b77f3))(_0x5f4fe5||{}),_0x40fe99=(_0x48f2d8=>(_0x48f2d8[_0x32684d(0xe4)]=_0x32684d(0xe4),_0x48f2d8['FitWidth']=_0x32684d(0xb9),_0x48f2d8[_0x32684d(0xb6)]='FitHeight',_0x48f2d8[_0x32684d(0xb2)]='FitPage',_0x48f2d8['Custom']=_0x32684d(0xdc),_0x48f2d8))(_0x40fe99||{}),_0x4b6688=(_0x42ed79=>(_0x42ed79['Start']='Start',_0x42ed79[_0x32684d(0xda)]=_0x32684d(0xda),_0x42ed79[_0x32684d(0xe2)]=_0x32684d(0xe2),_0x42ed79))(_0x4b6688||{}),_0x123ea8=(_0x5dbee7=>(_0x5dbee7[_0x32684d(0xe3)]=_0x32684d(0xe3),_0x5dbee7['Narrow']=_0x32684d(0xdf),_0x5dbee7[_0x32684d(0xb7)]='Wide',_0x5dbee7['None']=_0x32684d(0xbd),_0x5dbee7))(_0x123ea8||{});const _0x39d561={[_0x377d80['A3']]:{'w':0x463,'h':0x633},[_0x377d80['A4']]:{'w':0x31a,'h':0x464},[_0x377d80['A5']]:{'w':0x22f,'h':0x31a},[_0x377d80['B4']]:{'w':0x3b0,'h':0x540},[_0x377d80['B5']]:{'w':0x299,'h':0x3b0},[_0x377d80[_0x32684d(0xc7)]]:{'w':0x2b8,'h':0x3f0},[_0x377d80[_0x32684d(0xd5)]]:{'w':0x330,'h':0x4e0},[_0x377d80[_0x32684d(0xc8)]]:{'w':0x330,'h':0x540},[_0x377d80['Letter']]:{'w':0x330,'h':0x420},[_0x377d80[_0x32684d(0xb8)]]:{'w':0x210,'h':0x330},[_0x377d80[_0x32684d(0xdb)]]:{'w':0x420,'h':0x660}},_0x542b75={[_0x123ea8['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x123ea8[_0x32684d(0xdf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x123ea8[_0x32684d(0xb7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x123ea8['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4fc5aa=_0x32684d(0xcb),_0x33c146=_0x32684d(0xe7);function _0xbd299c(_0x4f4e91,_0x2608ff){const _0x342e06=_0x32684d,{w:_0x178fc3,h:_0x277b4a}=_0x39d561[_0x4f4e91],_0x2cf5f4=_0x2608ff===_0x5f4fe5['Portrait']?_0x178fc3:_0x277b4a,_0x5534da=_0x2608ff===_0x5f4fe5['Portrait']?_0x277b4a:_0x178fc3,_0x519bb4=_0x342e06(0xd9)+_0x2cf5f4+_0x342e06(0xcc)+_0x5534da+_0x342e06(0xd4)+_0x4fc5aa+_0x342e06(0xe1)+_0x4fc5aa+'\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.'+_0x33c146+_0x342e06(0xcd)+_0x5534da+_0x342e06(0xc6)+_0x2cf5f4+_0x342e06(0xd7),_0x2cbd58=document[_0x342e06(0xb4)]('style');return _0x2cbd58[_0x342e06(0xce)]=_0x519bb4,_0x2cbd58[_0x342e06(0xb3)]=_0x342e06(0xc5),_0x2cbd58;}_0x2982c2['PRINT_CANVAS_CLASS']=_0x33c146,_0x2982c2[_0x32684d(0xc3)]=_0x4fc5aa,_0x2982c2[_0x32684d(0xd0)]=_0x542b75,_0x2982c2[_0x32684d(0xcf)]=_0x39d561,_0x2982c2[_0x32684d(0xd6)]=_0x4b6688,_0x2982c2['PrintDirection']=_0x5f4fe5,_0x2982c2[_0x32684d(0xb5)]=_0x123ea8,_0x2982c2[_0x32684d(0xc1)]=_0x377d80,_0x2982c2['PrintScale']=_0x40fe99,_0x2982c2[_0x32684d(0xe0)]=_0xbd299c,Object[_0x32684d(0xc0)](_0x2982c2,Symbol[_0x32684d(0xdd)],{'value':_0x32684d(0xd3)});}));function _0x5aa9(_0x4e8065,_0x305a97){const _0x4d8d2b=_0x4d8d();return _0x5aa9=function(_0x5aa9d9,_0x38cde7){_0x5aa9d9=_0x5aa9d9-0xb2;let _0x357966=_0x4d8d2b[_0x5aa9d9];return _0x357966;},_0x5aa9(_0x4e8065,_0x305a97);}function _0x4d8d(){const _0x468be5=['FitPage','className','createElement','PrintPaperMargin','FitHeight','Wide','Statement','FitWidth','1390YrdeEa','364680NWoLKk','1340536VSjtnq','None','17028oanoCj','Portrait','defineProperty','PrintPaperSize','UniverProPrint','PRINT_CONTAINER_CLASS','object','offline-printing-css','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Executive','Legal','Landscape','6byrDej','printing-canvas-container','px\x20','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','innerHTML','PaperSizePxMap','PaperMarginMap','Letter','8113xEemkD','Module','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.','Folio','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1578HYSXnr','\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','End','Tabloid','Custom','toStringTag','exports','Narrow','createPrintStyle',',\x20.','Middle','Normal','Origin','1392vyVvsk','558cESPwr','printing-canvas','1727765wsCaFw','5163697BagIMm','amd'];_0x4d8d=function(){return _0x468be5;};return _0x4d8d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
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.7.2",
|
|
46
|
-
"vite": "^6.0.
|
|
46
|
+
"vite": "^6.0.7",
|
|
47
47
|
"vitest": "^2.1.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
48
|
+
"@univerjs-infra/shared": "0.5.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|