@univerjs-pro/print 0.5.0 → 0.5.1-nightly.202411301606
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 +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x13cc2e=_0x4288;function _0x4288(_0x578224,_0x2c2138){const _0x932e2b=_0x932e();return _0x4288=function(_0x42882e,_0x538620){_0x42882e=_0x42882e-0x1cb;let _0x59b2d7=_0x932e2b[_0x42882e];return _0x59b2d7;},_0x4288(_0x578224,_0x2c2138);}function _0x932e(){const _0x3db1d0=['2018824HvqGvp','Tabloid','defineProperty','139115MDjVgG','FitWidth','Origin','409030zttkHq','Narrow','className','PRINT_CONTAINER_CLASS','PrintDirection','Wide','PrintPaperMargin','FitHeight','3199090JSbssV','9iVsupd','None','Legal','Letter','Folio','Custom','Normal','Landscape','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.','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3qvDkQp','Start','createElement','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PaperSizePxMap','Statement','px\x20',',\x20.','toStringTag','303338gHztET','41212SGjWSe','Executive','PrintPaperSize','30OPPhEN','2303950qxcJSx','10jSUghK','Portrait'];_0x932e=function(){return _0x3db1d0;};return _0x932e();}(function(_0x5e8e8e,_0x524659){const _0x197534=_0x4288,_0x4b4ba1=_0x5e8e8e();while(!![]){try{const _0x5dc4bd=-parseInt(_0x197534(0x1e1))/0x1+-parseInt(_0x197534(0x1e4))/0x2*(parseInt(_0x197534(0x1cd))/0x3)+parseInt(_0x197534(0x1d7))/0x4*(parseInt(_0x197534(0x1dc))/0x5)+-parseInt(_0x197534(0x1da))/0x6*(-parseInt(_0x197534(0x1d6))/0x7)+-parseInt(_0x197534(0x1de))/0x8+-parseInt(_0x197534(0x1ed))/0x9*(-parseInt(_0x197534(0x1ec))/0xa)+parseInt(_0x197534(0x1db))/0xb;if(_0x5dc4bd===_0x524659)break;else _0x4b4ba1['push'](_0x4b4ba1['shift']());}catch(_0x18fe66){_0x4b4ba1['push'](_0x4b4ba1['shift']());}}}(_0x932e,0x29a9c));Object[_0x13cc2e(0x1e0)](exports,Symbol[_0x13cc2e(0x1d5)],{'value':'Module'});var e=(_0x13a933=>(_0x13a933[_0x13cc2e(0x1f0)]=_0x13cc2e(0x1f0),_0x13a933[_0x13cc2e(0x1df)]=_0x13cc2e(0x1df),_0x13a933[_0x13cc2e(0x1ef)]=_0x13cc2e(0x1ef),_0x13a933[_0x13cc2e(0x1d2)]=_0x13cc2e(0x1d2),_0x13a933['Executive']=_0x13cc2e(0x1d8),_0x13a933[_0x13cc2e(0x1f1)]='Folio',_0x13a933['A3']='A3',_0x13a933['A4']='A4',_0x13a933['A5']='A5',_0x13a933['B4']='B4',_0x13a933['B5']='B5',_0x13a933))(e||{}),i=(_0x2485eb=>(_0x2485eb[_0x13cc2e(0x1dd)]=_0x13cc2e(0x1dd),_0x2485eb[_0x13cc2e(0x1f4)]=_0x13cc2e(0x1f4),_0x2485eb))(i||{}),c=(_0x63973e=>(_0x63973e[_0x13cc2e(0x1e3)]='Origin',_0x63973e[_0x13cc2e(0x1e2)]='FitWidth',_0x63973e[_0x13cc2e(0x1eb)]='FitHeight',_0x63973e['FitPage']='FitPage',_0x63973e['Custom']=_0x13cc2e(0x1f2),_0x63973e))(c||{}),g=(_0x366ac1=>(_0x366ac1[_0x13cc2e(0x1ce)]='Start',_0x366ac1['End']='End',_0x366ac1[_0x13cc2e(0x1cb)]=_0x13cc2e(0x1cb),_0x366ac1))(g||{}),o=(_0x27b740=>(_0x27b740[_0x13cc2e(0x1f3)]=_0x13cc2e(0x1f3),_0x27b740[_0x13cc2e(0x1e5)]=_0x13cc2e(0x1e5),_0x27b740[_0x13cc2e(0x1e9)]=_0x13cc2e(0x1e9),_0x27b740[_0x13cc2e(0x1ee)]=_0x13cc2e(0x1ee),_0x27b740))(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[_0x13cc2e(0x1d8)]]:{'w':0x2b8,'h':0x3f0},[e[_0x13cc2e(0x1f1)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x13cc2e(0x1f0)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x13cc2e(0x1f3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x13cc2e(0x1e5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x13cc2e(0x1e9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p='printing-canvas';function A(_0xbae057,_0x1d0c24){const _0x525359=_0x13cc2e,{w:_0x2b8544,h:_0x718f56}=m[_0xbae057],_0x4e39d6=_0x1d0c24===i[_0x525359(0x1dd)]?_0x2b8544:_0x718f56,_0x1fa55a=_0x1d0c24===i[_0x525359(0x1dd)]?_0x718f56:_0x2b8544,_0x31de14='\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'+_0x4e39d6+_0x525359(0x1d3)+_0x1fa55a+_0x525359(0x1f5)+n+_0x525359(0x1d4)+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+_0x525359(0x1d0)+_0x1fa55a+_0x525359(0x1cc)+_0x4e39d6+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x542c0b=document[_0x525359(0x1cf)]('style');return _0x542c0b['innerHTML']=_0x31de14,_0x542c0b[_0x525359(0x1e6)]='offline-printing-css',_0x542c0b;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x13cc2e(0x1e7)]=n,exports['PaperMarginMap']=N,exports[_0x13cc2e(0x1d1)]=m,exports['PrintAlign']=g,exports[_0x13cc2e(0x1e8)]=i,exports[_0x13cc2e(0x1ea)]=o,exports[_0x13cc2e(0x1d9)]=e,exports['PrintScale']=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x319d36=_0x4d90;(function(_0x59b25e,_0x5d7f8a){const _0x2a907b=_0x4d90,_0x3048ce=_0x59b25e();while(!![]){try{const _0x298e83=-parseInt(_0x2a907b(0x16a))/0x1+parseInt(_0x2a907b(0x178))/0x2*(-parseInt(_0x2a907b(0x15b))/0x3)+-parseInt(_0x2a907b(0x158))/0x4+-parseInt(_0x2a907b(0x175))/0x5+parseInt(_0x2a907b(0x179))/0x6*(parseInt(_0x2a907b(0x170))/0x7)+parseInt(_0x2a907b(0x17b))/0x8+parseInt(_0x2a907b(0x17c))/0x9;if(_0x298e83===_0x5d7f8a)break;else _0x3048ce['push'](_0x3048ce['shift']());}catch(_0x329656){_0x3048ce['push'](_0x3048ce['shift']());}}}(_0x5edb,0x58a9a));var o=(_0x5f01c8=>(_0x5f01c8[_0x319d36(0x15e)]=_0x319d36(0x15e),_0x5f01c8['Tabloid']=_0x319d36(0x17a),_0x5f01c8['Legal']=_0x319d36(0x161),_0x5f01c8[_0x319d36(0x15a)]=_0x319d36(0x15a),_0x5f01c8[_0x319d36(0x162)]='Executive',_0x5f01c8[_0x319d36(0x15d)]=_0x319d36(0x15d),_0x5f01c8['A3']='A3',_0x5f01c8['A4']='A4',_0x5f01c8['A5']='A5',_0x5f01c8['B4']='B4',_0x5f01c8['B5']='B5',_0x5f01c8))(o||{}),i=(_0xf8a383=>(_0xf8a383[_0x319d36(0x167)]=_0x319d36(0x167),_0xf8a383[_0x319d36(0x172)]='Landscape',_0xf8a383))(i||{}),w=(_0xdeccd4=>(_0xdeccd4[_0x319d36(0x16e)]='Origin',_0xdeccd4[_0x319d36(0x15c)]='FitWidth',_0xdeccd4[_0x319d36(0x169)]=_0x319d36(0x169),_0xdeccd4[_0x319d36(0x163)]=_0x319d36(0x163),_0xdeccd4[_0x319d36(0x16b)]=_0x319d36(0x16b),_0xdeccd4))(w||{}),m=(_0x3c83ac=>(_0x3c83ac[_0x319d36(0x168)]=_0x319d36(0x168),_0x3c83ac['End']='End',_0x3c83ac[_0x319d36(0x164)]=_0x319d36(0x164),_0x3c83ac))(m||{}),e=(_0x5dac86=>(_0x5dac86[_0x319d36(0x17d)]=_0x319d36(0x17d),_0x5dac86[_0x319d36(0x166)]=_0x319d36(0x166),_0x5dac86[_0x319d36(0x16d)]='Wide',_0x5dac86[_0x319d36(0x174)]=_0x319d36(0x174),_0x5dac86))(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[_0x319d36(0x15d)]]:{'w':0x330,'h':0x4e0},[o[_0x319d36(0x161)]]:{'w':0x330,'h':0x540},[o[_0x319d36(0x15e)]]:{'w':0x330,'h':0x420},[o[_0x319d36(0x15a)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x319d36(0x17d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x319d36(0x166)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x319d36(0x16d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x319d36(0x174)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x319d36(0x160),p=_0x319d36(0x165);function _0x4d90(_0x294f07,_0x2b9678){const _0x5edb20=_0x5edb();return _0x4d90=function(_0x4d9031,_0xf42c6c){_0x4d9031=_0x4d9031-0x158;let _0x5b841f=_0x5edb20[_0x4d9031];return _0x5b841f;},_0x4d90(_0x294f07,_0x2b9678);}function _0x5edb(){const _0x14592c=['Middle','printing-canvas','Narrow','Portrait','Start','FitHeight','395307jGEQuW','Custom','offline-printing-css','Wide','Origin','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.','392heMFUz','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','\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.','None','2612340xsfSZn','className','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','523594EhnfVV','10464hKGevB','Tabloid','2613296AEklFX','11868003IONvPP','Normal','801036qSOcCL','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Statement','3WvcgJF','FitWidth','Folio','Letter','style','printing-canvas-container','Legal','Executive','FitPage'];_0x5edb=function(){return _0x14592c;};return _0x5edb();}function N(_0x45ed3f,_0x35785d){const _0x1eacf8=_0x319d36,{w:_0x17b480,h:_0x33e548}=g[_0x45ed3f],_0x253716=_0x35785d===i[_0x1eacf8(0x167)]?_0x17b480:_0x33e548,_0x33bed2=_0x35785d===i[_0x1eacf8(0x167)]?_0x33e548:_0x17b480,_0x45d9d9='\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'+_0x253716+'px\x20'+_0x33bed2+_0x1eacf8(0x16f)+l+',\x20.'+l+_0x1eacf8(0x173)+p+_0x1eacf8(0x177)+_0x33bed2+_0x1eacf8(0x171)+_0x253716+_0x1eacf8(0x159),_0x2fc1f0=document['createElement'](_0x1eacf8(0x15f));return _0x2fc1f0['innerHTML']=_0x45d9d9,_0x2fc1f0[_0x1eacf8(0x176)]=_0x1eacf8(0x16c),_0x2fc1f0;}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 _0x334d(_0x257ef7,_0x2598b8){const _0x27cccf=_0x27cc();return _0x334d=function(_0x334d13,_0x1022d8){_0x334d13=_0x334d13-0xa5;let _0x28c1ba=_0x27cccf[_0x334d13];return _0x28c1ba;},_0x334d(_0x257ef7,_0x2598b8);}(function(_0x17975f,_0x1b2f11){const _0x44fc4e=_0x334d,_0x4bfac2=_0x17975f();while(!![]){try{const _0x4a9a27=parseInt(_0x44fc4e(0xcd))/0x1*(parseInt(_0x44fc4e(0xd5))/0x2)+parseInt(_0x44fc4e(0xae))/0x3+-parseInt(_0x44fc4e(0xc3))/0x4*(parseInt(_0x44fc4e(0xbd))/0x5)+-parseInt(_0x44fc4e(0xb2))/0x6*(parseInt(_0x44fc4e(0xa8))/0x7)+-parseInt(_0x44fc4e(0xc4))/0x8+parseInt(_0x44fc4e(0xa6))/0x9+-parseInt(_0x44fc4e(0xd2))/0xa;if(_0x4a9a27===_0x1b2f11)break;else _0x4bfac2['push'](_0x4bfac2['shift']());}catch(_0x51490c){_0x4bfac2['push'](_0x4bfac2['shift']());}}}(_0x27cc,0x54cb8),function(_0x5cbccc,_0x453311){const _0x3353b9=_0x334d;typeof exports==_0x3353b9(0xb7)&&typeof module<'u'?_0x453311(exports):typeof define==_0x3353b9(0xc0)&&define[_0x3353b9(0xc8)]?define([_0x3353b9(0xb6)],_0x453311):(_0x5cbccc=typeof globalThis<'u'?globalThis:_0x5cbccc||self,_0x453311(_0x5cbccc['UniverProPrint']={}));}(this,function(_0x56230d){'use strict';const _0x2bcdd9=_0x334d;var _0x232351=(_0x4b7050=>(_0x4b7050[_0x2bcdd9(0xd7)]=_0x2bcdd9(0xd7),_0x4b7050[_0x2bcdd9(0xa5)]='Tabloid',_0x4b7050[_0x2bcdd9(0xd3)]=_0x2bcdd9(0xd3),_0x4b7050[_0x2bcdd9(0xbc)]=_0x2bcdd9(0xbc),_0x4b7050[_0x2bcdd9(0xad)]='Executive',_0x4b7050['Folio']='Folio',_0x4b7050['A3']='A3',_0x4b7050['A4']='A4',_0x4b7050['A5']='A5',_0x4b7050['B4']='B4',_0x4b7050['B5']='B5',_0x4b7050))(_0x232351||{}),_0x5eeca4=(_0x572576=>(_0x572576['Portrait']=_0x2bcdd9(0xc5),_0x572576[_0x2bcdd9(0xb9)]=_0x2bcdd9(0xb9),_0x572576))(_0x5eeca4||{}),_0x3c6c55=(_0x5b3505=>(_0x5b3505[_0x2bcdd9(0xc6)]=_0x2bcdd9(0xc6),_0x5b3505[_0x2bcdd9(0xd8)]=_0x2bcdd9(0xd8),_0x5b3505['FitHeight']=_0x2bcdd9(0xb3),_0x5b3505[_0x2bcdd9(0xb5)]=_0x2bcdd9(0xb5),_0x5b3505[_0x2bcdd9(0xbf)]=_0x2bcdd9(0xbf),_0x5b3505))(_0x3c6c55||{}),_0x56aae7=(_0xc0163f=>(_0xc0163f[_0x2bcdd9(0xab)]=_0x2bcdd9(0xab),_0xc0163f[_0x2bcdd9(0xd4)]=_0x2bcdd9(0xd4),_0xc0163f[_0x2bcdd9(0xcc)]='Middle',_0xc0163f))(_0x56aae7||{}),_0x53bf9b=(_0x30b483=>(_0x30b483[_0x2bcdd9(0xa7)]=_0x2bcdd9(0xa7),_0x30b483['Narrow']='Narrow',_0x30b483['Wide']=_0x2bcdd9(0xc2),_0x30b483[_0x2bcdd9(0xb8)]=_0x2bcdd9(0xb8),_0x30b483))(_0x53bf9b||{});const _0x20291a={[_0x232351['A3']]:{'w':0x463,'h':0x633},[_0x232351['A4']]:{'w':0x31a,'h':0x464},[_0x232351['A5']]:{'w':0x22f,'h':0x31a},[_0x232351['B4']]:{'w':0x3b0,'h':0x540},[_0x232351['B5']]:{'w':0x299,'h':0x3b0},[_0x232351[_0x2bcdd9(0xad)]]:{'w':0x2b8,'h':0x3f0},[_0x232351['Folio']]:{'w':0x330,'h':0x4e0},[_0x232351[_0x2bcdd9(0xd3)]]:{'w':0x330,'h':0x540},[_0x232351[_0x2bcdd9(0xd7)]]:{'w':0x330,'h':0x420},[_0x232351['Statement']]:{'w':0x210,'h':0x330},[_0x232351[_0x2bcdd9(0xa5)]]:{'w':0x420,'h':0x660}},_0x2ba22d={[_0x53bf9b[_0x2bcdd9(0xa7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x53bf9b[_0x2bcdd9(0xd6)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x53bf9b['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x53bf9b[_0x2bcdd9(0xb8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1d1660=_0x2bcdd9(0xaa),_0x1a6787='printing-canvas';function _0x43ae16(_0x3436b1,_0x24684c){const _0x198767=_0x2bcdd9,{w:_0x44b6d1,h:_0x3bf896}=_0x20291a[_0x3436b1],_0x4681f7=_0x24684c===_0x5eeca4['Portrait']?_0x44b6d1:_0x3bf896,_0x33f4b1=_0x24684c===_0x5eeca4[_0x198767(0xc5)]?_0x3bf896:_0x44b6d1,_0x59d7ce=_0x198767(0xce)+_0x4681f7+_0x198767(0xd1)+_0x33f4b1+'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.'+_0x1d1660+_0x198767(0xc7)+_0x1d1660+'\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.'+_0x1a6787+_0x198767(0xd0)+_0x33f4b1+_0x198767(0xca)+_0x4681f7+_0x198767(0xc1),_0x25c8eb=document[_0x198767(0xbb)]('style');return _0x25c8eb['innerHTML']=_0x59d7ce,_0x25c8eb[_0x198767(0xac)]=_0x198767(0xcf),_0x25c8eb;}_0x56230d[_0x2bcdd9(0xb0)]=_0x1a6787,_0x56230d[_0x2bcdd9(0xba)]=_0x1d1660,_0x56230d['PaperMarginMap']=_0x2ba22d,_0x56230d[_0x2bcdd9(0xb4)]=_0x20291a,_0x56230d[_0x2bcdd9(0xc9)]=_0x56aae7,_0x56230d[_0x2bcdd9(0xd9)]=_0x5eeca4,_0x56230d[_0x2bcdd9(0xa9)]=_0x53bf9b,_0x56230d['PrintPaperSize']=_0x232351,_0x56230d[_0x2bcdd9(0xbe)]=_0x3c6c55,_0x56230d[_0x2bcdd9(0xb1)]=_0x43ae16,Object[_0x2bcdd9(0xaf)](_0x56230d,Symbol[_0x2bcdd9(0xcb)],{'value':'Module'});}));function _0x27cc(){const _0xe2834f=['toStringTag','Middle','169046yTucAI','\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','offline-printing-css','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px\x20','615390fpiFlr','Legal','End','4cvtsOz','Narrow','Letter','FitWidth','PrintDirection','Tabloid','4333005zphAMh','Normal','1067689cUmHzE','PrintPaperMargin','printing-canvas-container','Start','className','Executive','840000YGkVYB','defineProperty','PRINT_CANVAS_CLASS','createPrintStyle','6qQomww','FitHeight','PaperSizePxMap','FitPage','exports','object','None','Landscape','PRINT_CONTAINER_CLASS','createElement','Statement','28760GtvJcC','PrintScale','Custom','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Wide','236phUYOl','1590264UQuDAr','Portrait','Origin',',\x20.','amd','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x27cc=function(){return _0xe2834f;};return _0x27cc();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1-nightly.202411301606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^5.
|
|
46
|
-
"vite": "^
|
|
47
|
-
"vitest": "^2.1.
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
45
|
+
"typescript": "^5.7.2",
|
|
46
|
+
"vite": "^6.0.0",
|
|
47
|
+
"vitest": "^2.1.6",
|
|
48
|
+
"@univerjs-infra/shared": "0.5.1"
|
|
49
49
|
},
|
|
50
50
|
"space": {
|
|
51
51
|
".": {
|