@univerjs-pro/print 0.5.5 → 0.6.0-experimental.20250125-1d060b9

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x371282=_0x1f48;function _0x1f48(_0x31ba1f,_0x528286){const _0x1422bc=_0x1422();return _0x1f48=function(_0x1f483e,_0xf72c0b){_0x1f483e=_0x1f483e-0x1b4;let _0x133976=_0x1422bc[_0x1f483e];return _0x133976;},_0x1f48(_0x31ba1f,_0x528286);}(function(_0x20e56b,_0x1278f8){const _0x5db82d=_0x1f48,_0x190b6a=_0x20e56b();while(!![]){try{const _0x3a4072=-parseInt(_0x5db82d(0x1df))/0x1*(-parseInt(_0x5db82d(0x1c4))/0x2)+parseInt(_0x5db82d(0x1e1))/0x3*(-parseInt(_0x5db82d(0x1e0))/0x4)+parseInt(_0x5db82d(0x1c1))/0x5+-parseInt(_0x5db82d(0x1cd))/0x6*(-parseInt(_0x5db82d(0x1c6))/0x7)+-parseInt(_0x5db82d(0x1cb))/0x8*(-parseInt(_0x5db82d(0x1d4))/0x9)+-parseInt(_0x5db82d(0x1b5))/0xa+-parseInt(_0x5db82d(0x1c2))/0xb;if(_0x3a4072===_0x1278f8)break;else _0x190b6a['push'](_0x190b6a['shift']());}catch(_0x2ba45f){_0x190b6a['push'](_0x190b6a['shift']());}}}(_0x1422,0xaa2f8));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});var e=(_0x134482=>(_0x134482[_0x371282(0x1db)]=_0x371282(0x1db),_0x134482[_0x371282(0x1d5)]='Tabloid',_0x134482[_0x371282(0x1c0)]=_0x371282(0x1c0),_0x134482['Statement']=_0x371282(0x1d1),_0x134482[_0x371282(0x1b8)]='Executive',_0x134482[_0x371282(0x1bf)]=_0x371282(0x1bf),_0x134482['A3']='A3',_0x134482['A4']='A4',_0x134482['A5']='A5',_0x134482['B4']='B4',_0x134482['B5']='B5',_0x134482))(e||{}),i=(_0x12327f=>(_0x12327f['Portrait']=_0x371282(0x1d3),_0x12327f[_0x371282(0x1cc)]=_0x371282(0x1cc),_0x12327f))(i||{}),c=(_0x590397=>(_0x590397[_0x371282(0x1dd)]=_0x371282(0x1dd),_0x590397['FitWidth']=_0x371282(0x1c3),_0x590397[_0x371282(0x1be)]=_0x371282(0x1be),_0x590397[_0x371282(0x1ba)]=_0x371282(0x1ba),_0x590397[_0x371282(0x1cf)]=_0x371282(0x1cf),_0x590397))(c||{}),g=(_0x22ca10=>(_0x22ca10[_0x371282(0x1dc)]=_0x371282(0x1dc),_0x22ca10[_0x371282(0x1ce)]=_0x371282(0x1ce),_0x22ca10[_0x371282(0x1e3)]=_0x371282(0x1e3),_0x22ca10))(g||{}),o=(_0x4e728b=>(_0x4e728b[_0x371282(0x1d6)]=_0x371282(0x1d6),_0x4e728b['Narrow']=_0x371282(0x1b7),_0x4e728b[_0x371282(0x1d8)]='Wide',_0x4e728b[_0x371282(0x1d0)]=_0x371282(0x1d0),_0x4e728b))(o||{});function _0x1422(){const _0x322334=['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.','createPrintStyle','Letter','Start','Origin','innerHTML','23077NbJmxW','68yFNXax','4413mXGJLY','printing-canvas','Middle','printing-canvas-container','8257760aBViMq','PrintDirection','Narrow','Executive','\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','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintPaperMargin','FitHeight','Folio','Legal','4567255YAbBtb','3836888DATqaN','FitWidth','70HNoNZe','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','200634VEjPxB','PRINT_CANVAS_CLASS','offline-printing-css','PaperSizePxMap','PrintAlign','1832BzGJvl','Landscape','18cVGZVW','End','Custom','None','Statement','px\x20','Portrait','3519wOgFfI','Tabloid','Normal','PaperMarginMap','Wide'];_0x1422=function(){return _0x322334;};return _0x1422();}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[_0x371282(0x1b8)]]:{'w':0x2b8,'h':0x3f0},[e[_0x371282(0x1bf)]]:{'w':0x330,'h':0x4e0},[e[_0x371282(0x1c0)]]:{'w':0x330,'h':0x540},[e[_0x371282(0x1db)]]:{'w':0x330,'h':0x420},[e[_0x371282(0x1d1)]]:{'w':0x210,'h':0x330},[e[_0x371282(0x1d5)]]:{'w':0x420,'h':0x660}},N={[o[_0x371282(0x1d6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x371282(0x1b7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x371282(0x1d8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x371282(0x1d0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x371282(0x1b4),p=_0x371282(0x1e2);function A(_0x165a61,_0x1ba285){const _0x198a41=_0x371282,{w:_0x186319,h:_0xd13636}=m[_0x165a61],_0x191f9c=_0x1ba285===i['Portrait']?_0x186319:_0xd13636,_0x42b3c4=_0x1ba285===i[_0x198a41(0x1d3)]?_0xd13636:_0x186319,_0x28b293=_0x198a41(0x1b9)+_0x191f9c+_0x198a41(0x1d2)+_0x42b3c4+_0x198a41(0x1d9)+n+',\x20.'+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+_0x198a41(0x1bc)+_0x42b3c4+_0x198a41(0x1c5)+_0x191f9c+_0x198a41(0x1bb),_0xb5ec43=document['createElement']('style');return _0xb5ec43[_0x198a41(0x1de)]=_0x28b293,_0xb5ec43['className']=_0x198a41(0x1c8),_0xb5ec43;}exports[_0x371282(0x1c7)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x371282(0x1d7)]=N,exports[_0x371282(0x1c9)]=m,exports[_0x371282(0x1ca)]=g,exports[_0x371282(0x1b6)]=i,exports[_0x371282(0x1bd)]=o,exports['PrintPaperSize']=e,exports['PrintScale']=c,exports[_0x371282(0x1da)]=A;
1
+ 'use strict';const _0x4ad3e5=_0x17dc;(function(_0x4149e9,_0x58ca3c){const _0x137b32=_0x17dc,_0x304855=_0x4149e9();while(!![]){try{const _0x2453f2=parseInt(_0x137b32(0x17a))/0x1+parseInt(_0x137b32(0x15f))/0x2+-parseInt(_0x137b32(0x15b))/0x3*(-parseInt(_0x137b32(0x169))/0x4)+parseInt(_0x137b32(0x166))/0x5+parseInt(_0x137b32(0x16d))/0x6*(parseInt(_0x137b32(0x15c))/0x7)+parseInt(_0x137b32(0x168))/0x8*(-parseInt(_0x137b32(0x162))/0x9)+parseInt(_0x137b32(0x174))/0xa*(-parseInt(_0x137b32(0x156))/0xb);if(_0x2453f2===_0x58ca3c)break;else _0x304855['push'](_0x304855['shift']());}catch(_0xcb9446){_0x304855['push'](_0x304855['shift']());}}}(_0x19c2,0x386ff));function _0x19c2(){const _0x2bfdba=['150EXvakJ','Narrow','Middle','defineProperty','None','PaperMarginMap','Start','1964930tphGAq','FitPage','End','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','Tabloid','265471MHrlNW','PrintPaperMargin','createElement','Origin','Landscape','Legal','PRINT_CONTAINER_CLASS','Executive','Letter','createPrintStyle','PrintDirection','22xdWLGA','FitHeight','printing-canvas','px\x20','printing-canvas-container','3AwOOAi','31479oIsyBw','PRINT_CANVAS_CLASS','Module','406632RqKMLB','Normal','FitWidth','4338sktWxV','Portrait','Wide','\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.','1942420JREegO','Custom','7088LWPuAi','326036OiqjaP',',\x20.','PrintPaperSize','PrintScale'];_0x19c2=function(){return _0x2bfdba;};return _0x19c2();}Object[_0x4ad3e5(0x170)](exports,Symbol['toStringTag'],{'value':_0x4ad3e5(0x15e)});var e=(_0x5bde77=>(_0x5bde77['Letter']=_0x4ad3e5(0x153),_0x5bde77[_0x4ad3e5(0x179)]=_0x4ad3e5(0x179),_0x5bde77[_0x4ad3e5(0x150)]=_0x4ad3e5(0x150),_0x5bde77['Statement']='Statement',_0x5bde77[_0x4ad3e5(0x152)]=_0x4ad3e5(0x152),_0x5bde77[_0x4ad3e5(0x178)]='Folio',_0x5bde77['A3']='A3',_0x5bde77['A4']='A4',_0x5bde77['A5']='A5',_0x5bde77['B4']='B4',_0x5bde77['B5']='B5',_0x5bde77))(e||{}),i=(_0x366eb8=>(_0x366eb8['Portrait']=_0x4ad3e5(0x163),_0x366eb8[_0x4ad3e5(0x14f)]=_0x4ad3e5(0x14f),_0x366eb8))(i||{}),c=(_0x5cd4a5=>(_0x5cd4a5[_0x4ad3e5(0x14e)]=_0x4ad3e5(0x14e),_0x5cd4a5[_0x4ad3e5(0x161)]=_0x4ad3e5(0x161),_0x5cd4a5[_0x4ad3e5(0x157)]=_0x4ad3e5(0x157),_0x5cd4a5['FitPage']=_0x4ad3e5(0x175),_0x5cd4a5[_0x4ad3e5(0x167)]=_0x4ad3e5(0x167),_0x5cd4a5))(c||{}),g=(_0x216796=>(_0x216796[_0x4ad3e5(0x173)]='Start',_0x216796[_0x4ad3e5(0x176)]=_0x4ad3e5(0x176),_0x216796[_0x4ad3e5(0x16f)]='Middle',_0x216796))(g||{}),o=(_0x6aa7f8=>(_0x6aa7f8[_0x4ad3e5(0x160)]='Normal',_0x6aa7f8[_0x4ad3e5(0x16e)]=_0x4ad3e5(0x16e),_0x6aa7f8[_0x4ad3e5(0x164)]='Wide',_0x6aa7f8[_0x4ad3e5(0x171)]=_0x4ad3e5(0x171),_0x6aa7f8))(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[_0x4ad3e5(0x178)]]:{'w':0x330,'h':0x4e0},[e[_0x4ad3e5(0x150)]]:{'w':0x330,'h':0x540},[e[_0x4ad3e5(0x153)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x4ad3e5(0x179)]]:{'w':0x420,'h':0x660}},N={[o[_0x4ad3e5(0x160)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4ad3e5(0x16e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4ad3e5(0x164)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4ad3e5(0x171)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4ad3e5(0x15a),p=_0x4ad3e5(0x158);function _0x17dc(_0x51c9cf,_0x9836a){const _0x19c211=_0x19c2();return _0x17dc=function(_0x17dcf5,_0x3e46e0){_0x17dcf5=_0x17dcf5-0x14c;let _0x7f1b80=_0x19c211[_0x17dcf5];return _0x7f1b80;},_0x17dc(_0x51c9cf,_0x9836a);}function A(_0x5d23f1,_0x25e0e3){const _0x451416=_0x4ad3e5,{w:_0x41e889,h:_0x5c6d35}=m[_0x5d23f1],_0x37f386=_0x25e0e3===i['Portrait']?_0x41e889:_0x5c6d35,_0x190099=_0x25e0e3===i[_0x451416(0x163)]?_0x5c6d35:_0x41e889,_0x2e7662='\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'+_0x37f386+_0x451416(0x159)+_0x190099+_0x451416(0x177)+n+_0x451416(0x16a)+n+_0x451416(0x165)+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'+_0x190099+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x37f386+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x38bf9c=document[_0x451416(0x14d)]('style');return _0x38bf9c['innerHTML']=_0x2e7662,_0x38bf9c['className']='offline-printing-css',_0x38bf9c;}exports[_0x4ad3e5(0x15d)]=p,exports[_0x4ad3e5(0x151)]=n,exports[_0x4ad3e5(0x172)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x4ad3e5(0x155)]=i,exports[_0x4ad3e5(0x14c)]=o,exports[_0x4ad3e5(0x16b)]=e,exports[_0x4ad3e5(0x16c)]=c,exports[_0x4ad3e5(0x154)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0xe3a7(_0x4ba633,_0x5dbbe6){const _0x3cb271=_0x3cb2();return _0xe3a7=function(_0xe3a7b,_0x36181a){_0xe3a7b=_0xe3a7b-0x192;let _0x3cad68=_0x3cb271[_0xe3a7b];return _0x3cad68;},_0xe3a7(_0x4ba633,_0x5dbbe6);}const _0x76d2b=_0xe3a7;(function(_0x50e86b,_0x256a80){const _0x31bc33=_0xe3a7,_0x2f9086=_0x50e86b();while(!![]){try{const _0x3371da=-parseInt(_0x31bc33(0x1af))/0x1+-parseInt(_0x31bc33(0x199))/0x2+parseInt(_0x31bc33(0x1a1))/0x3*(-parseInt(_0x31bc33(0x1a6))/0x4)+-parseInt(_0x31bc33(0x1ad))/0x5*(-parseInt(_0x31bc33(0x1a8))/0x6)+parseInt(_0x31bc33(0x1b0))/0x7+parseInt(_0x31bc33(0x1a2))/0x8*(-parseInt(_0x31bc33(0x1b7))/0x9)+parseInt(_0x31bc33(0x1b6))/0xa;if(_0x3371da===_0x256a80)break;else _0x2f9086['push'](_0x2f9086['shift']());}catch(_0x20e6e9){_0x2f9086['push'](_0x2f9086['shift']());}}}(_0x3cb2,0xe16c4));var o=(_0x23136e=>(_0x23136e[_0x76d2b(0x196)]='Letter',_0x23136e[_0x76d2b(0x1a0)]=_0x76d2b(0x1a0),_0x23136e['Legal']='Legal',_0x23136e[_0x76d2b(0x195)]=_0x76d2b(0x195),_0x23136e[_0x76d2b(0x1ac)]='Executive',_0x23136e[_0x76d2b(0x1b3)]=_0x76d2b(0x1b3),_0x23136e['A3']='A3',_0x23136e['A4']='A4',_0x23136e['A5']='A5',_0x23136e['B4']='B4',_0x23136e['B5']='B5',_0x23136e))(o||{}),i=(_0x84cfd3=>(_0x84cfd3[_0x76d2b(0x1ab)]=_0x76d2b(0x1ab),_0x84cfd3[_0x76d2b(0x193)]='Landscape',_0x84cfd3))(i||{}),w=(_0x286069=>(_0x286069[_0x76d2b(0x192)]=_0x76d2b(0x192),_0x286069['FitWidth']=_0x76d2b(0x19d),_0x286069[_0x76d2b(0x1b1)]=_0x76d2b(0x1b1),_0x286069[_0x76d2b(0x194)]=_0x76d2b(0x194),_0x286069[_0x76d2b(0x198)]=_0x76d2b(0x198),_0x286069))(w||{}),m=(_0x3e3cd8=>(_0x3e3cd8[_0x76d2b(0x19f)]=_0x76d2b(0x19f),_0x3e3cd8['End']='End',_0x3e3cd8[_0x76d2b(0x19c)]=_0x76d2b(0x19c),_0x3e3cd8))(m||{}),e=(_0x35ca3c=>(_0x35ca3c['Normal']=_0x76d2b(0x1ae),_0x35ca3c[_0x76d2b(0x1a3)]=_0x76d2b(0x1a3),_0x35ca3c['Wide']='Wide',_0x35ca3c[_0x76d2b(0x1b9)]=_0x76d2b(0x1b9),_0x35ca3c))(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[_0x76d2b(0x1ac)]]:{'w':0x2b8,'h':0x3f0},[o[_0x76d2b(0x1b3)]]:{'w':0x330,'h':0x4e0},[o[_0x76d2b(0x19b)]]:{'w':0x330,'h':0x540},[o[_0x76d2b(0x196)]]:{'w':0x330,'h':0x420},[o[_0x76d2b(0x195)]]:{'w':0x210,'h':0x330},[o[_0x76d2b(0x1a0)]]:{'w':0x420,'h':0x660}},v={[e[_0x76d2b(0x1ae)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x76d2b(0x1a3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x76d2b(0x1aa)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x76d2b(0x1a5);function _0x3cb2(){const _0x1f16b6=['printing-canvas','168076jOHBGx','offline-printing-css','8070rLLtkm','\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','Wide','Portrait','Executive','3595zfvQNc','Normal','1338276PnvCWb','5672163vwdkTg','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.','Folio','innerHTML',',\x20.','24881620rTCPcr','396FhbCtz','style','None','Origin','Landscape','FitPage','Statement','Letter','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','3692888NLGGXv','className','Legal','Middle','FitWidth','px\x20','Start','Tabloid','6xjuSet','13352IZBFUC','Narrow','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x3cb2=function(){return _0x1f16b6;};return _0x3cb2();}function N(_0x2a11dd,_0x1bf8a6){const _0x506a88=_0x76d2b,{w:_0x525a44,h:_0x612f31}=g[_0x2a11dd],_0x4a8d3c=_0x1bf8a6===i[_0x506a88(0x1ab)]?_0x525a44:_0x612f31,_0x147945=_0x1bf8a6===i['Portrait']?_0x612f31:_0x525a44,_0x263d20=_0x506a88(0x1a9)+_0x4a8d3c+_0x506a88(0x19e)+_0x147945+'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.'+l+_0x506a88(0x1b5)+l+_0x506a88(0x1b2)+p+_0x506a88(0x1a4)+_0x147945+_0x506a88(0x197)+_0x4a8d3c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x5a4548=document['createElement'](_0x506a88(0x1b8));return _0x5a4548[_0x506a88(0x1b4)]=_0x263d20,_0x5a4548[_0x506a88(0x19a)]=_0x506a88(0x1a7),_0x5a4548;}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};
1
+ const _0x9f164a=_0x2177;(function(_0x270f44,_0x232aea){const _0x1824c9=_0x2177,_0x27091b=_0x270f44();while(!![]){try{const _0x5104c2=parseInt(_0x1824c9(0xd0))/0x1*(-parseInt(_0x1824c9(0xd9))/0x2)+-parseInt(_0x1824c9(0xe2))/0x3*(-parseInt(_0x1824c9(0xd3))/0x4)+parseInt(_0x1824c9(0xdb))/0x5*(parseInt(_0x1824c9(0xcb))/0x6)+parseInt(_0x1824c9(0xc6))/0x7+-parseInt(_0x1824c9(0xcf))/0x8*(-parseInt(_0x1824c9(0xef))/0x9)+-parseInt(_0x1824c9(0xea))/0xa+-parseInt(_0x1824c9(0xcc))/0xb*(parseInt(_0x1824c9(0xe7))/0xc);if(_0x5104c2===_0x232aea)break;else _0x27091b['push'](_0x27091b['shift']());}catch(_0x1b04bb){_0x27091b['push'](_0x27091b['shift']());}}}(_0x52fb,0xa064b));var o=(_0x343151=>(_0x343151[_0x9f164a(0xe3)]=_0x9f164a(0xe3),_0x343151[_0x9f164a(0xdd)]='Tabloid',_0x343151[_0x9f164a(0xe6)]='Legal',_0x343151[_0x9f164a(0xec)]=_0x9f164a(0xec),_0x343151[_0x9f164a(0xf1)]=_0x9f164a(0xf1),_0x343151['Folio']=_0x9f164a(0xc9),_0x343151['A3']='A3',_0x343151['A4']='A4',_0x343151['A5']='A5',_0x343151['B4']='B4',_0x343151['B5']='B5',_0x343151))(o||{}),i=(_0x183320=>(_0x183320['Portrait']=_0x9f164a(0xd1),_0x183320[_0x9f164a(0xd7)]=_0x9f164a(0xd7),_0x183320))(i||{}),w=(_0x497d31=>(_0x497d31[_0x9f164a(0xca)]='Origin',_0x497d31[_0x9f164a(0xe8)]='FitWidth',_0x497d31[_0x9f164a(0xce)]=_0x9f164a(0xce),_0x497d31[_0x9f164a(0xe5)]=_0x9f164a(0xe5),_0x497d31['Custom']=_0x9f164a(0xe1),_0x497d31))(w||{}),m=(_0x1d124c=>(_0x1d124c[_0x9f164a(0xde)]='Start',_0x1d124c[_0x9f164a(0xdf)]=_0x9f164a(0xdf),_0x1d124c[_0x9f164a(0xd5)]=_0x9f164a(0xd5),_0x1d124c))(m||{}),e=(_0x4415cb=>(_0x4415cb[_0x9f164a(0xd6)]='Normal',_0x4415cb[_0x9f164a(0xdc)]=_0x9f164a(0xdc),_0x4415cb[_0x9f164a(0xcd)]=_0x9f164a(0xcd),_0x4415cb[_0x9f164a(0xe4)]=_0x9f164a(0xe4),_0x4415cb))(e||{});function _0x2177(_0x53342b,_0x50ff7f){const _0x52fb07=_0x52fb();return _0x2177=function(_0x2177a1,_0x38e7c7){_0x2177a1=_0x2177a1-0xc6;let _0x2157ef=_0x52fb07[_0x2177a1];return _0x2157ef;},_0x2177(_0x53342b,_0x50ff7f);}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[_0x9f164a(0xf1)]]:{'w':0x2b8,'h':0x3f0},[o[_0x9f164a(0xc9)]]:{'w':0x330,'h':0x4e0},[o[_0x9f164a(0xe6)]]:{'w':0x330,'h':0x540},[o[_0x9f164a(0xe3)]]:{'w':0x330,'h':0x420},[o[_0x9f164a(0xec)]]:{'w':0x210,'h':0x330},[o[_0x9f164a(0xdd)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x9f164a(0xdc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x9f164a(0xcd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x9f164a(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x9f164a(0xd2);function N(_0x288934,_0x41cf7e){const _0x424e55=_0x9f164a,{w:_0x4ec596,h:_0x4086b2}=g[_0x288934],_0x5bb4bc=_0x41cf7e===i[_0x424e55(0xd1)]?_0x4ec596:_0x4086b2,_0x31e7f1=_0x41cf7e===i['Portrait']?_0x4086b2:_0x4ec596,_0xd5abcb='\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'+_0x5bb4bc+_0x424e55(0xd4)+_0x31e7f1+_0x424e55(0xed)+l+_0x424e55(0xd8)+l+_0x424e55(0xf0)+p+_0x424e55(0xe9)+_0x31e7f1+_0x424e55(0xe0)+_0x5bb4bc+_0x424e55(0xee),_0x1cb6e2=document[_0x424e55(0xeb)]('style');return _0x1cb6e2[_0x424e55(0xda)]=_0xd5abcb,_0x1cb6e2[_0x424e55(0xc8)]=_0x424e55(0xc7),_0x1cb6e2;}function _0x52fb(){const _0x1e37fc=['7787577AuLLCp','offline-printing-css','className','Folio','Origin','18UiqCnh','1816573ncEDGp','Wide','FitHeight','144HjluSA','1042upicbj','Portrait','printing-canvas','3855732FrswSt','px\x20','Middle','Normal','Landscape',',\x20.','14IpfjNs','innerHTML','325895BDfWAo','Narrow','Tabloid','Start','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','3rdaNrQ','Letter','None','FitPage','Legal','84uNSoie','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','13119170pJAgWG','createElement','Statement','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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','430101KszpgV','\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.','Executive'];_0x52fb=function(){return _0x1e37fc;};return _0x52fb();}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(_0x7e43f1,_0x3fa9de){const _0x32d106=_0x4594,_0x490b21=_0x7e43f1();while(!![]){try{const _0x58ecdd=parseInt(_0x32d106(0x1dd))/0x1+-parseInt(_0x32d106(0x1e2))/0x2*(-parseInt(_0x32d106(0x1f7))/0x3)+-parseInt(_0x32d106(0x203))/0x4+parseInt(_0x32d106(0x205))/0x5+-parseInt(_0x32d106(0x1fa))/0x6+parseInt(_0x32d106(0x200))/0x7+-parseInt(_0x32d106(0x1e7))/0x8;if(_0x58ecdd===_0x3fa9de)break;else _0x490b21['push'](_0x490b21['shift']());}catch(_0x19c721){_0x490b21['push'](_0x490b21['shift']());}}}(_0x1139,0xe2674),function(_0x103221,_0x3515db){const _0x287e52=_0x4594;typeof exports=='object'&&typeof module<'u'?_0x3515db(exports):typeof define==_0x287e52(0x1f9)&&define['amd']?define([_0x287e52(0x1e3)],_0x3515db):(_0x103221=typeof globalThis<'u'?globalThis:_0x103221||self,_0x3515db(_0x103221[_0x287e52(0x1ff)]={}));}(this,function(_0x9af397){'use strict';const _0x1e0f09=_0x4594;var _0x408ffd=(_0xce0655=>(_0xce0655['Letter']='Letter',_0xce0655[_0x1e0f09(0x20a)]=_0x1e0f09(0x20a),_0xce0655['Legal']=_0x1e0f09(0x1eb),_0xce0655[_0x1e0f09(0x1de)]='Statement',_0xce0655[_0x1e0f09(0x20c)]='Executive',_0xce0655[_0x1e0f09(0x1ea)]='Folio',_0xce0655['A3']='A3',_0xce0655['A4']='A4',_0xce0655['A5']='A5',_0xce0655['B4']='B4',_0xce0655['B5']='B5',_0xce0655))(_0x408ffd||{}),_0x581c47=(_0x4db561=>(_0x4db561[_0x1e0f09(0x20d)]=_0x1e0f09(0x20d),_0x4db561[_0x1e0f09(0x1f8)]='Landscape',_0x4db561))(_0x581c47||{}),_0x1a60d9=(_0x184b0d=>(_0x184b0d['Origin']='Origin',_0x184b0d[_0x1e0f09(0x1ed)]=_0x1e0f09(0x1ed),_0x184b0d[_0x1e0f09(0x1f3)]='FitHeight',_0x184b0d['FitPage']=_0x1e0f09(0x1df),_0x184b0d[_0x1e0f09(0x1fe)]=_0x1e0f09(0x1fe),_0x184b0d))(_0x1a60d9||{}),_0x5d24d5=(_0x110405=>(_0x110405['Start']='Start',_0x110405[_0x1e0f09(0x1ee)]=_0x1e0f09(0x1ee),_0x110405[_0x1e0f09(0x1f1)]=_0x1e0f09(0x1f1),_0x110405))(_0x5d24d5||{}),_0x7f8213=(_0x34463b=>(_0x34463b['Normal']='Normal',_0x34463b[_0x1e0f09(0x1ec)]=_0x1e0f09(0x1ec),_0x34463b[_0x1e0f09(0x1e5)]=_0x1e0f09(0x1e5),_0x34463b['None']=_0x1e0f09(0x1fd),_0x34463b))(_0x7f8213||{});const _0x54fe16={[_0x408ffd['A3']]:{'w':0x463,'h':0x633},[_0x408ffd['A4']]:{'w':0x31a,'h':0x464},[_0x408ffd['A5']]:{'w':0x22f,'h':0x31a},[_0x408ffd['B4']]:{'w':0x3b0,'h':0x540},[_0x408ffd['B5']]:{'w':0x299,'h':0x3b0},[_0x408ffd['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x408ffd[_0x1e0f09(0x1ea)]]:{'w':0x330,'h':0x4e0},[_0x408ffd[_0x1e0f09(0x1eb)]]:{'w':0x330,'h':0x540},[_0x408ffd[_0x1e0f09(0x1e0)]]:{'w':0x330,'h':0x420},[_0x408ffd[_0x1e0f09(0x1de)]]:{'w':0x210,'h':0x330},[_0x408ffd[_0x1e0f09(0x20a)]]:{'w':0x420,'h':0x660}},_0x962988={[_0x7f8213['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x7f8213['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x7f8213[_0x1e0f09(0x1e5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x7f8213[_0x1e0f09(0x1fd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x24032e=_0x1e0f09(0x1e6),_0x1451dc=_0x1e0f09(0x1ef);function _0x3b4794(_0x57f80,_0x27e474){const _0x3a6132=_0x1e0f09,{w:_0x5ca020,h:_0x2a23e4}=_0x54fe16[_0x57f80],_0xfe726f=_0x27e474===_0x581c47['Portrait']?_0x5ca020:_0x2a23e4,_0x3a37a3=_0x27e474===_0x581c47[_0x3a6132(0x20d)]?_0x2a23e4:_0x5ca020,_0x257a28=_0x3a6132(0x1fb)+_0xfe726f+_0x3a6132(0x1e4)+_0x3a37a3+'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.'+_0x24032e+_0x3a6132(0x202)+_0x24032e+_0x3a6132(0x1db)+_0x1451dc+_0x3a6132(0x1fc)+_0x3a37a3+_0x3a6132(0x201)+_0xfe726f+_0x3a6132(0x20b),_0xfbe8fd=document[_0x3a6132(0x1f4)]('style');return _0xfbe8fd[_0x3a6132(0x1e9)]=_0x257a28,_0xfbe8fd[_0x3a6132(0x1f5)]='offline-printing-css',_0xfbe8fd;}_0x9af397[_0x1e0f09(0x1e1)]=_0x1451dc,_0x9af397[_0x1e0f09(0x207)]=_0x24032e,_0x9af397[_0x1e0f09(0x208)]=_0x962988,_0x9af397['PaperSizePxMap']=_0x54fe16,_0x9af397['PrintAlign']=_0x5d24d5,_0x9af397[_0x1e0f09(0x1dc)]=_0x581c47,_0x9af397[_0x1e0f09(0x204)]=_0x7f8213,_0x9af397[_0x1e0f09(0x1f6)]=_0x408ffd,_0x9af397[_0x1e0f09(0x1f0)]=_0x1a60d9,_0x9af397[_0x1e0f09(0x206)]=_0x3b4794,Object[_0x1e0f09(0x1e8)](_0x9af397,Symbol[_0x1e0f09(0x1f2)],{'value':_0x1e0f09(0x209)});}));function _0x4594(_0x25659b,_0x31c3ff){const _0x1139b9=_0x1139();return _0x4594=function(_0x459468,_0xf916dc){_0x459468=_0x459468-0x1db;let _0x370c61=_0x1139b9[_0x459468];return _0x370c61;},_0x4594(_0x25659b,_0x31c3ff);}function _0x1139(){const _0x1b4caa=['FitPage','Letter','PRINT_CANVAS_CLASS','452YDNrGm','exports','px\x20','Wide','printing-canvas-container','10723608hedvQm','defineProperty','innerHTML','Folio','Legal','Narrow','FitWidth','End','printing-canvas','PrintScale','Middle','toStringTag','FitHeight','createElement','className','PrintPaperSize','6036KXqsme','Landscape','function','6665568uNXDlC','\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','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','None','Custom','UniverProPrint','5454134vjHQhW','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','4114696DLreKj','PrintPaperMargin','7725650lmHiDW','createPrintStyle','PRINT_CONTAINER_CLASS','PaperMarginMap','Module','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Executive','Portrait','\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.','PrintDirection','1628397ZvInPQ','Statement'];_0x1139=function(){return _0x1b4caa;};return _0x1139();}
1
+ function _0x3b39(_0x57dbf5,_0x56ed2e){const _0x42759c=_0x4275();return _0x3b39=function(_0x3b395e,_0x5cdef5){_0x3b395e=_0x3b395e-0xae;let _0x4432f5=_0x42759c[_0x3b395e];return _0x4432f5;},_0x3b39(_0x57dbf5,_0x56ed2e);}(function(_0x599c7d,_0x519d1c){const _0x9bf02=_0x3b39,_0x49a110=_0x599c7d();while(!![]){try{const _0x24bd7a=-parseInt(_0x9bf02(0xc6))/0x1+-parseInt(_0x9bf02(0xd2))/0x2+-parseInt(_0x9bf02(0xd6))/0x3+-parseInt(_0x9bf02(0xb0))/0x4+-parseInt(_0x9bf02(0xcd))/0x5*(-parseInt(_0x9bf02(0xaf))/0x6)+parseInt(_0x9bf02(0xd0))/0x7*(-parseInt(_0x9bf02(0xb4))/0x8)+-parseInt(_0x9bf02(0xc0))/0x9*(-parseInt(_0x9bf02(0xd9))/0xa);if(_0x24bd7a===_0x519d1c)break;else _0x49a110['push'](_0x49a110['shift']());}catch(_0x415d7b){_0x49a110['push'](_0x49a110['shift']());}}}(_0x4275,0xd9ea7),function(_0x9752a7,_0x4be3f8){const _0x267f62=_0x3b39;typeof exports=='object'&&typeof module<'u'?_0x4be3f8(exports):typeof define=='function'&&define['amd']?define([_0x267f62(0xc9)],_0x4be3f8):(_0x9752a7=typeof globalThis<'u'?globalThis:_0x9752a7||self,_0x4be3f8(_0x9752a7[_0x267f62(0xd3)]={}));}(this,function(_0x4bd035){'use strict';const _0x107aa4=_0x3b39;var _0xcfba57=(_0x2e8c3f=>(_0x2e8c3f[_0x107aa4(0xbd)]=_0x107aa4(0xbd),_0x2e8c3f[_0x107aa4(0xd5)]='Tabloid',_0x2e8c3f[_0x107aa4(0xb3)]=_0x107aa4(0xb3),_0x2e8c3f[_0x107aa4(0xba)]=_0x107aa4(0xba),_0x2e8c3f['Executive']=_0x107aa4(0xd4),_0x2e8c3f['Folio']=_0x107aa4(0xb6),_0x2e8c3f['A3']='A3',_0x2e8c3f['A4']='A4',_0x2e8c3f['A5']='A5',_0x2e8c3f['B4']='B4',_0x2e8c3f['B5']='B5',_0x2e8c3f))(_0xcfba57||{}),_0x224f51=(_0x247196=>(_0x247196['Portrait']='Portrait',_0x247196['Landscape']='Landscape',_0x247196))(_0x224f51||{}),_0x37dfa6=(_0x22cff8=>(_0x22cff8['Origin']='Origin',_0x22cff8['FitWidth']='FitWidth',_0x22cff8[_0x107aa4(0xb9)]=_0x107aa4(0xb9),_0x22cff8[_0x107aa4(0xc8)]=_0x107aa4(0xc8),_0x22cff8[_0x107aa4(0xbc)]=_0x107aa4(0xbc),_0x22cff8))(_0x37dfa6||{}),_0xce3280=(_0x3703d0=>(_0x3703d0[_0x107aa4(0xcb)]=_0x107aa4(0xcb),_0x3703d0['End']=_0x107aa4(0xbb),_0x3703d0['Middle']=_0x107aa4(0xc2),_0x3703d0))(_0xce3280||{}),_0x1745c9=(_0xba4227=>(_0xba4227[_0x107aa4(0xc3)]=_0x107aa4(0xc3),_0xba4227[_0x107aa4(0xc1)]='Narrow',_0xba4227[_0x107aa4(0xc7)]=_0x107aa4(0xc7),_0xba4227[_0x107aa4(0xc4)]=_0x107aa4(0xc4),_0xba4227))(_0x1745c9||{});const _0x56f5c9={[_0xcfba57['A3']]:{'w':0x463,'h':0x633},[_0xcfba57['A4']]:{'w':0x31a,'h':0x464},[_0xcfba57['A5']]:{'w':0x22f,'h':0x31a},[_0xcfba57['B4']]:{'w':0x3b0,'h':0x540},[_0xcfba57['B5']]:{'w':0x299,'h':0x3b0},[_0xcfba57[_0x107aa4(0xd4)]]:{'w':0x2b8,'h':0x3f0},[_0xcfba57[_0x107aa4(0xb6)]]:{'w':0x330,'h':0x4e0},[_0xcfba57[_0x107aa4(0xb3)]]:{'w':0x330,'h':0x540},[_0xcfba57[_0x107aa4(0xbd)]]:{'w':0x330,'h':0x420},[_0xcfba57[_0x107aa4(0xba)]]:{'w':0x210,'h':0x330},[_0xcfba57['Tabloid']]:{'w':0x420,'h':0x660}},_0x4032c8={[_0x1745c9[_0x107aa4(0xc3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1745c9[_0x107aa4(0xc1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1745c9['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1745c9['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x327957=_0x107aa4(0xce),_0x2b0271=_0x107aa4(0xdb);function _0x5bd37c(_0x2fe086,_0x5d37bd){const _0x40f9be=_0x107aa4,{w:_0x187c61,h:_0xb71500}=_0x56f5c9[_0x2fe086],_0x97e07d=_0x5d37bd===_0x224f51[_0x40f9be(0xbe)]?_0x187c61:_0xb71500,_0x12b422=_0x5d37bd===_0x224f51[_0x40f9be(0xbe)]?_0xb71500:_0x187c61,_0x171ffb='\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'+_0x97e07d+_0x40f9be(0xb2)+_0x12b422+'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.'+_0x327957+_0x40f9be(0xcf)+_0x327957+_0x40f9be(0xda)+_0x2b0271+_0x40f9be(0xd7)+_0x12b422+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x97e07d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x35c0bc=document[_0x40f9be(0xd8)](_0x40f9be(0xc5));return _0x35c0bc['innerHTML']=_0x171ffb,_0x35c0bc[_0x40f9be(0xd1)]='offline-printing-css',_0x35c0bc;}_0x4bd035['PRINT_CANVAS_CLASS']=_0x2b0271,_0x4bd035[_0x107aa4(0xca)]=_0x327957,_0x4bd035[_0x107aa4(0xae)]=_0x4032c8,_0x4bd035[_0x107aa4(0xbf)]=_0x56f5c9,_0x4bd035[_0x107aa4(0xcc)]=_0xce3280,_0x4bd035[_0x107aa4(0xb7)]=_0x224f51,_0x4bd035[_0x107aa4(0xb1)]=_0x1745c9,_0x4bd035['PrintPaperSize']=_0xcfba57,_0x4bd035['PrintScale']=_0x37dfa6,_0x4bd035['createPrintStyle']=_0x5bd37c,Object[_0x107aa4(0xb5)](_0x4bd035,Symbol['toStringTag'],{'value':_0x107aa4(0xb8)});}));function _0x4275(){const _0x3b3b6e=['7mKjnVa','className','2516954ijBfjg','UniverProPrint','Executive','Tabloid','1410867IvyABh','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','createElement','630QQpyvT','\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.','printing-canvas','PaperMarginMap','30HZctnX','3093664zsgKCo','PrintPaperMargin','px\x20','Legal','5634416mPSRNO','defineProperty','Folio','PrintDirection','Module','FitHeight','Statement','End','Custom','Letter','Portrait','PaperSizePxMap','466605ayaCHa','Narrow','Middle','Normal','None','style','427138PbGcGQ','Wide','FitPage','exports','PRINT_CONTAINER_CLASS','Start','PrintAlign','1259970UOgSNH','printing-canvas-container',',\x20.'];_0x4275=function(){return _0x3b3b6e;};return _0x4275();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.5.5",
3
+ "version": "0.6.0-experimental.20250125-1d060b9",
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.7.2",
45
+ "typescript": "^5.7.3",
46
46
  "vite": "^6.0.7",
47
47
  "vitest": "^2.1.8",
48
- "@univerjs-infra/shared": "0.5.5"
48
+ "@univerjs-infra/shared": "0.6.0-alpha.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",