@univerjs-pro/print 0.5.0 → 0.5.1-nightly.202412011605

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 _0x1c34a3=_0x11b2;(function(_0x26e41c,_0x3d845d){const _0x3d9c1c=_0x11b2,_0xfceb9e=_0x26e41c();while(!![]){try{const _0x501aea=-parseInt(_0x3d9c1c(0x1c2))/0x1*(-parseInt(_0x3d9c1c(0x1b6))/0x2)+parseInt(_0x3d9c1c(0x1bb))/0x3+parseInt(_0x3d9c1c(0x1de))/0x4+-parseInt(_0x3d9c1c(0x1d5))/0x5*(-parseInt(_0x3d9c1c(0x1c0))/0x6)+-parseInt(_0x3d9c1c(0x1b5))/0x7+-parseInt(_0x3d9c1c(0x1e1))/0x8+parseInt(_0x3d9c1c(0x1ce))/0x9;if(_0x501aea===_0x3d845d)break;else _0xfceb9e['push'](_0xfceb9e['shift']());}catch(_0x2d24e2){_0xfceb9e['push'](_0xfceb9e['shift']());}}}(_0x5b48,0x5aa9b));Object[_0x1c34a3(0x1e2)](exports,Symbol[_0x1c34a3(0x1e9)],{'value':_0x1c34a3(0x1e8)});var e=(_0x47b399=>(_0x47b399[_0x1c34a3(0x1d9)]=_0x1c34a3(0x1d9),_0x47b399[_0x1c34a3(0x1dd)]=_0x1c34a3(0x1dd),_0x47b399[_0x1c34a3(0x1d6)]=_0x1c34a3(0x1d6),_0x47b399[_0x1c34a3(0x1d2)]='Statement',_0x47b399[_0x1c34a3(0x1c5)]=_0x1c34a3(0x1c5),_0x47b399[_0x1c34a3(0x1c4)]=_0x1c34a3(0x1c4),_0x47b399['A3']='A3',_0x47b399['A4']='A4',_0x47b399['A5']='A5',_0x47b399['B4']='B4',_0x47b399['B5']='B5',_0x47b399))(e||{}),i=(_0x554d4f=>(_0x554d4f[_0x1c34a3(0x1e7)]='Portrait',_0x554d4f[_0x1c34a3(0x1bf)]=_0x1c34a3(0x1bf),_0x554d4f))(i||{}),c=(_0x432cf9=>(_0x432cf9['Origin']=_0x1c34a3(0x1c7),_0x432cf9[_0x1c34a3(0x1cd)]=_0x1c34a3(0x1cd),_0x432cf9[_0x1c34a3(0x1b7)]=_0x1c34a3(0x1b7),_0x432cf9['FitPage']=_0x1c34a3(0x1cc),_0x432cf9[_0x1c34a3(0x1cb)]='Custom',_0x432cf9))(c||{}),g=(_0xd49deb=>(_0xd49deb[_0x1c34a3(0x1e3)]=_0x1c34a3(0x1e3),_0xd49deb[_0x1c34a3(0x1bd)]=_0x1c34a3(0x1bd),_0xd49deb[_0x1c34a3(0x1da)]=_0x1c34a3(0x1da),_0xd49deb))(g||{}),o=(_0x483c24=>(_0x483c24[_0x1c34a3(0x1d0)]=_0x1c34a3(0x1d0),_0x483c24[_0x1c34a3(0x1cf)]=_0x1c34a3(0x1cf),_0x483c24['Wide']=_0x1c34a3(0x1dc),_0x483c24[_0x1c34a3(0x1e4)]=_0x1c34a3(0x1e4),_0x483c24))(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[_0x1c34a3(0x1c5)]]:{'w':0x2b8,'h':0x3f0},[e[_0x1c34a3(0x1c4)]]:{'w':0x330,'h':0x4e0},[e[_0x1c34a3(0x1d6)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x1c34a3(0x1dd)]]:{'w':0x420,'h':0x660}},N={[o[_0x1c34a3(0x1d0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1c34a3(0x1cf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1c34a3(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1c34a3(0x1e4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x1c34a3(0x1e5),p=_0x1c34a3(0x1c6);function _0x5b48(){const _0x228188=['End','PrintDirection','Landscape','6qlgQOD','innerHTML','1887aInAOJ','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','Executive','printing-canvas','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintPaperSize',',\x20.','Custom','FitPage','FitWidth','1922706kyRFQC','Narrow','Normal','createPrintStyle','Statement','createElement','PaperMarginMap','3432595IPCgWo','Legal','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Letter','Middle','offline-printing-css','Wide','Tabloid','822240Phcpcf','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','5586016vsSbte','defineProperty','Start','None','printing-canvas-container','PRINT_CANVAS_CLASS','Portrait','Module','toStringTag','PaperSizePxMap','4115104DwCTcJ','358bqZziT','FitHeight','className','\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.','PrintScale','641979BqDZFc','\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'];_0x5b48=function(){return _0x228188;};return _0x5b48();}function A(_0x5e373c,_0x1c86b8){const _0x34890a=_0x1c34a3,{w:_0x4c7218,h:_0x5a9929}=m[_0x5e373c],_0x2f505a=_0x1c86b8===i[_0x34890a(0x1e7)]?_0x4c7218:_0x5a9929,_0x2aba22=_0x1c86b8===i[_0x34890a(0x1e7)]?_0x5a9929:_0x4c7218,_0x4b40df=_0x34890a(0x1bc)+_0x2f505a+_0x34890a(0x1df)+_0x2aba22+_0x34890a(0x1c3)+n+_0x34890a(0x1ca)+n+_0x34890a(0x1b9)+p+_0x34890a(0x1d8)+_0x2aba22+_0x34890a(0x1e0)+_0x2f505a+_0x34890a(0x1c8),_0x3e0051=document[_0x34890a(0x1d3)]('style');return _0x3e0051[_0x34890a(0x1c1)]=_0x4b40df,_0x3e0051[_0x34890a(0x1b8)]=_0x34890a(0x1db),_0x3e0051;}function _0x11b2(_0xbd3157,_0x8a1784){const _0x5b48ea=_0x5b48();return _0x11b2=function(_0x11b2be,_0x428ed8){_0x11b2be=_0x11b2be-0x1b5;let _0x236075=_0x5b48ea[_0x11b2be];return _0x236075;},_0x11b2(_0xbd3157,_0x8a1784);}exports[_0x1c34a3(0x1e6)]=p,exports[_0x1c34a3(0x1d7)]=n,exports[_0x1c34a3(0x1d4)]=N,exports[_0x1c34a3(0x1ea)]=m,exports['PrintAlign']=g,exports[_0x1c34a3(0x1be)]=i,exports['PrintPaperMargin']=o,exports[_0x1c34a3(0x1c9)]=e,exports[_0x1c34a3(0x1ba)]=c,exports[_0x1c34a3(0x1d1)]=A;
1
+ 'use strict';const _0x592e57=_0x74c0;(function(_0xe8e517,_0x18b111){const _0x519afa=_0x74c0,_0x1754b2=_0xe8e517();while(!![]){try{const _0x3839bc=-parseInt(_0x519afa(0x11d))/0x1*(parseInt(_0x519afa(0x13a))/0x2)+-parseInt(_0x519afa(0x129))/0x3*(-parseInt(_0x519afa(0x122))/0x4)+-parseInt(_0x519afa(0x145))/0x5+-parseInt(_0x519afa(0x138))/0x6+-parseInt(_0x519afa(0x12d))/0x7*(-parseInt(_0x519afa(0x14f))/0x8)+-parseInt(_0x519afa(0x13f))/0x9+-parseInt(_0x519afa(0x128))/0xa*(-parseInt(_0x519afa(0x127))/0xb);if(_0x3839bc===_0x18b111)break;else _0x1754b2['push'](_0x1754b2['shift']());}catch(_0x467022){_0x1754b2['push'](_0x1754b2['shift']());}}}(_0x4f25,0xb00e5));function _0x74c0(_0x2bbc7c,_0xd08b93){const _0x4f2546=_0x4f25();return _0x74c0=function(_0x74c075,_0x248ba1){_0x74c075=_0x74c075-0x11d;let _0x342f6b=_0x4f2546[_0x74c075];return _0x342f6b;},_0x74c0(_0x2bbc7c,_0xd08b93);}Object['defineProperty'](exports,Symbol[_0x592e57(0x143)],{'value':_0x592e57(0x12b)});var e=(_0x149e07=>(_0x149e07[_0x592e57(0x131)]=_0x592e57(0x131),_0x149e07[_0x592e57(0x120)]=_0x592e57(0x120),_0x149e07['Legal']=_0x592e57(0x14e),_0x149e07[_0x592e57(0x142)]='Statement',_0x149e07[_0x592e57(0x150)]='Executive',_0x149e07[_0x592e57(0x149)]=_0x592e57(0x149),_0x149e07['A3']='A3',_0x149e07['A4']='A4',_0x149e07['A5']='A5',_0x149e07['B4']='B4',_0x149e07['B5']='B5',_0x149e07))(e||{}),i=(_0x2f125d=>(_0x2f125d[_0x592e57(0x148)]=_0x592e57(0x148),_0x2f125d[_0x592e57(0x13e)]='Landscape',_0x2f125d))(i||{}),c=(_0x33824c=>(_0x33824c[_0x592e57(0x14d)]=_0x592e57(0x14d),_0x33824c[_0x592e57(0x147)]=_0x592e57(0x147),_0x33824c[_0x592e57(0x140)]=_0x592e57(0x140),_0x33824c[_0x592e57(0x14a)]=_0x592e57(0x14a),_0x33824c[_0x592e57(0x13b)]='Custom',_0x33824c))(c||{}),g=(_0x27d38f=>(_0x27d38f['Start']=_0x592e57(0x136),_0x27d38f[_0x592e57(0x11f)]=_0x592e57(0x11f),_0x27d38f['Middle']=_0x592e57(0x146),_0x27d38f))(g||{}),o=(_0x27395a=>(_0x27395a['Normal']=_0x592e57(0x126),_0x27395a[_0x592e57(0x13c)]=_0x592e57(0x13c),_0x27395a[_0x592e57(0x12c)]='Wide',_0x27395a['None']=_0x592e57(0x132),_0x27395a))(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[_0x592e57(0x150)]]:{'w':0x2b8,'h':0x3f0},[e[_0x592e57(0x149)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x592e57(0x131)]]:{'w':0x330,'h':0x420},[e[_0x592e57(0x142)]]:{'w':0x210,'h':0x330},[e[_0x592e57(0x120)]]:{'w':0x420,'h':0x660}},N={[o[_0x592e57(0x126)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x592e57(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x592e57(0x13d),p=_0x592e57(0x141);function _0x4f25(){const _0x46d272=['56dvvUBM','Executive','PaperSizePxMap','1pLyjIa','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','Tabloid','style','43012yVDEYm','PRINT_CONTAINER_CLASS','PrintAlign','\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','Normal','11IeXxey','47591240nmuFpO','24WVxfGX','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Module','Wide','296898QmMLgF','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','PaperMarginMap','Letter','None','PrintPaperSize','PrintScale','offline-printing-css','Start','createElement','8111352eUtAEl','PRINT_CANVAS_CLASS','1376052ogcehg','Custom','Narrow','printing-canvas-container','Landscape','12673989uiFSbc','FitHeight','printing-canvas','Statement','toStringTag','createPrintStyle','4863910ZwBkVk','Middle','FitWidth','Portrait','Folio','FitPage','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','Origin','Legal'];_0x4f25=function(){return _0x46d272;};return _0x4f25();}function A(_0xa460fc,_0x2efe8b){const _0x9a570f=_0x592e57,{w:_0x35cfc0,h:_0x44fbdb}=m[_0xa460fc],_0x34dec4=_0x2efe8b===i[_0x9a570f(0x148)]?_0x35cfc0:_0x44fbdb,_0x4bbd69=_0x2efe8b===i['Portrait']?_0x44fbdb:_0x35cfc0,_0x61f0fa=_0x9a570f(0x125)+_0x34dec4+_0x9a570f(0x12f)+_0x4bbd69+_0x9a570f(0x12e)+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+_0x9a570f(0x14c)+_0x4bbd69+_0x9a570f(0x11e)+_0x34dec4+_0x9a570f(0x12a),_0x2c9ed8=document[_0x9a570f(0x137)](_0x9a570f(0x121));return _0x2c9ed8['innerHTML']=_0x61f0fa,_0x2c9ed8[_0x9a570f(0x14b)]=_0x9a570f(0x135),_0x2c9ed8;}exports[_0x592e57(0x139)]=p,exports[_0x592e57(0x123)]=n,exports[_0x592e57(0x130)]=N,exports[_0x592e57(0x151)]=m,exports[_0x592e57(0x124)]=g,exports['PrintDirection']=i,exports['PrintPaperMargin']=o,exports[_0x592e57(0x133)]=e,exports[_0x592e57(0x134)]=c,exports[_0x592e57(0x144)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2c715b=_0xb1c0;(function(_0x1b5038,_0x3cd938){const _0x2a3dca=_0xb1c0,_0x5050ab=_0x1b5038();while(!![]){try{const _0x44ad39=-parseInt(_0x2a3dca(0xac))/0x1+-parseInt(_0x2a3dca(0xb9))/0x2+parseInt(_0x2a3dca(0xa1))/0x3*(-parseInt(_0x2a3dca(0xbf))/0x4)+-parseInt(_0x2a3dca(0xb5))/0x5+parseInt(_0x2a3dca(0xbd))/0x6*(parseInt(_0x2a3dca(0xa5))/0x7)+-parseInt(_0x2a3dca(0xad))/0x8*(-parseInt(_0x2a3dca(0xab))/0x9)+-parseInt(_0x2a3dca(0x98))/0xa*(-parseInt(_0x2a3dca(0xae))/0xb);if(_0x44ad39===_0x3cd938)break;else _0x5050ab['push'](_0x5050ab['shift']());}catch(_0x5c7f99){_0x5050ab['push'](_0x5050ab['shift']());}}}(_0x56e3,0xc31cf));var o=(_0x2297ca=>(_0x2297ca[_0x2c715b(0xbb)]='Letter',_0x2297ca[_0x2c715b(0xa2)]=_0x2c715b(0xa2),_0x2297ca[_0x2c715b(0xa0)]='Legal',_0x2297ca[_0x2c715b(0xa6)]=_0x2c715b(0xa6),_0x2297ca[_0x2c715b(0xb7)]=_0x2c715b(0xb7),_0x2297ca[_0x2c715b(0xa9)]=_0x2c715b(0xa9),_0x2297ca['A3']='A3',_0x2297ca['A4']='A4',_0x2297ca['A5']='A5',_0x2297ca['B4']='B4',_0x2297ca['B5']='B5',_0x2297ca))(o||{}),i=(_0x4a7f49=>(_0x4a7f49['Portrait']='Portrait',_0x4a7f49['Landscape']=_0x2c715b(0xa3),_0x4a7f49))(i||{}),w=(_0x37ec67=>(_0x37ec67[_0x2c715b(0xb8)]='Origin',_0x37ec67[_0x2c715b(0xb0)]=_0x2c715b(0xb0),_0x37ec67[_0x2c715b(0x9d)]='FitHeight',_0x37ec67[_0x2c715b(0xbe)]='FitPage',_0x37ec67[_0x2c715b(0xa4)]='Custom',_0x37ec67))(w||{}),m=(_0x1434f6=>(_0x1434f6['Start']=_0x2c715b(0xa7),_0x1434f6[_0x2c715b(0x9f)]=_0x2c715b(0x9f),_0x1434f6[_0x2c715b(0x9b)]=_0x2c715b(0x9b),_0x1434f6))(m||{}),e=(_0x50db7e=>(_0x50db7e[_0x2c715b(0x9a)]=_0x2c715b(0x9a),_0x50db7e[_0x2c715b(0xb6)]=_0x2c715b(0xb6),_0x50db7e[_0x2c715b(0xb3)]='Wide',_0x50db7e[_0x2c715b(0xa8)]=_0x2c715b(0xa8),_0x50db7e))(e||{});function _0xb1c0(_0x4e8532,_0x5989fb){const _0x56e372=_0x56e3();return _0xb1c0=function(_0xb1c014,_0x41503c){_0xb1c014=_0xb1c014-0x98;let _0x394fe2=_0x56e372[_0xb1c014];return _0x394fe2;},_0xb1c0(_0x4e8532,_0x5989fb);}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[_0x2c715b(0xb7)]]:{'w':0x2b8,'h':0x3f0},[o[_0x2c715b(0xa9)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x2c715b(0xbb)]]:{'w':0x330,'h':0x420},[o[_0x2c715b(0xa6)]]:{'w':0x210,'h':0x330},[o[_0x2c715b(0xa2)]]:{'w':0x420,'h':0x660}},v={[e[_0x2c715b(0x9a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x2c715b(0xb3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x2c715b(0xa8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x2c715b(0xba),p='printing-canvas';function N(_0x4ba0b8,_0x2b2982){const _0x51d62c=_0x2c715b,{w:_0x51513d,h:_0x47c446}=g[_0x4ba0b8],_0x3a6577=_0x2b2982===i[_0x51d62c(0xbc)]?_0x51513d:_0x47c446,_0x392a78=_0x2b2982===i[_0x51d62c(0xbc)]?_0x47c446:_0x51513d,_0x14fe80='\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'+_0x3a6577+_0x51d62c(0xb2)+_0x392a78+_0x51d62c(0xb4)+l+_0x51d62c(0x9e)+l+_0x51d62c(0xb1)+p+_0x51d62c(0x99)+_0x392a78+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3a6577+_0x51d62c(0x9c),_0x12daf2=document['createElement'](_0x51d62c(0xaf));return _0x12daf2['innerHTML']=_0x14fe80,_0x12daf2['className']=_0x51d62c(0xaa),_0x12daf2;}function _0x56e3(){const _0xe09645=['11vjlJyN','style','FitWidth','\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','Wide','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.','2611320axfWBx','Narrow','Executive','Origin','2867882eXRafh','printing-canvas-container','Letter','Portrait','6540JayvAr','FitPage','18740oJhspP','28158460bHVgkf','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Normal','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitHeight',',\x20.','End','Legal','327tdoxBN','Tabloid','Landscape','Custom','2870TSTXuo','Statement','Start','None','Folio','offline-printing-css','63wHvWFl','459750CKDgcB','529208XFopUt'];_0x56e3=function(){return _0xe09645;};return _0x56e3();}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 _0x57252a=_0x5996;(function(_0x167922,_0x4db2d5){const _0x5cf015=_0x5996,_0x3ab6dd=_0x167922();while(!![]){try{const _0x387389=parseInt(_0x5cf015(0xec))/0x1*(-parseInt(_0x5cf015(0xf4))/0x2)+parseInt(_0x5cf015(0xe3))/0x3+parseInt(_0x5cf015(0xfc))/0x4+-parseInt(_0x5cf015(0xea))/0x5+-parseInt(_0x5cf015(0xdd))/0x6*(parseInt(_0x5cf015(0xe7))/0x7)+parseInt(_0x5cf015(0xf2))/0x8+-parseInt(_0x5cf015(0xe9))/0x9;if(_0x387389===_0x4db2d5)break;else _0x3ab6dd['push'](_0x3ab6dd['shift']());}catch(_0x1284e1){_0x3ab6dd['push'](_0x3ab6dd['shift']());}}}(_0x4fb6,0x95f0e));var o=(_0x2fb5ea=>(_0x2fb5ea['Letter']='Letter',_0x2fb5ea[_0x57252a(0xe6)]=_0x57252a(0xe6),_0x2fb5ea[_0x57252a(0xf0)]=_0x57252a(0xf0),_0x2fb5ea['Statement']=_0x57252a(0xfb),_0x2fb5ea[_0x57252a(0xfe)]='Executive',_0x2fb5ea[_0x57252a(0xfa)]=_0x57252a(0xfa),_0x2fb5ea['A3']='A3',_0x2fb5ea['A4']='A4',_0x2fb5ea['A5']='A5',_0x2fb5ea['B4']='B4',_0x2fb5ea['B5']='B5',_0x2fb5ea))(o||{}),i=(_0x2a512a=>(_0x2a512a[_0x57252a(0xdc)]=_0x57252a(0xdc),_0x2a512a['Landscape']=_0x57252a(0xf9),_0x2a512a))(i||{}),w=(_0x2cf37d=>(_0x2cf37d[_0x57252a(0xde)]=_0x57252a(0xde),_0x2cf37d['FitWidth']=_0x57252a(0xf5),_0x2cf37d['FitHeight']=_0x57252a(0xe4),_0x2cf37d[_0x57252a(0x100)]=_0x57252a(0x100),_0x2cf37d['Custom']=_0x57252a(0xe2),_0x2cf37d))(w||{}),m=(_0x1a98f2=>(_0x1a98f2[_0x57252a(0xee)]=_0x57252a(0xee),_0x1a98f2[_0x57252a(0xf1)]=_0x57252a(0xf1),_0x1a98f2['Middle']=_0x57252a(0xdf),_0x1a98f2))(m||{}),e=(_0x31fec5=>(_0x31fec5[_0x57252a(0xe5)]=_0x57252a(0xe5),_0x31fec5[_0x57252a(0xed)]=_0x57252a(0xed),_0x31fec5[_0x57252a(0xe1)]=_0x57252a(0xe1),_0x31fec5[_0x57252a(0xef)]=_0x57252a(0xef),_0x31fec5))(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[_0x57252a(0xfe)]]:{'w':0x2b8,'h':0x3f0},[o[_0x57252a(0xfa)]]:{'w':0x330,'h':0x4e0},[o[_0x57252a(0xf0)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x57252a(0xfb)]]:{'w':0x210,'h':0x330},[o[_0x57252a(0xe6)]]:{'w':0x420,'h':0x660}},v={[e[_0x57252a(0xe5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x57252a(0xed)]]:{'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=_0x57252a(0xf6),p=_0x57252a(0xeb);function _0x4fb6(){const _0x5e8dc8=['59528ipSKsM','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','1885347MIUXZZ','617875EgRaFX','printing-canvas','1aZKmOx','Narrow','Start','None','Legal','End','3017208QYXvBJ','px\x20','1488782kEeiGz','FitWidth','printing-canvas-container','offline-printing-css','createElement','Landscape','Folio','Statement','2450472ffdUfD','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.','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.','FitPage','Portrait','42HDfXdq','Origin','Middle','className','Wide','Custom','2284098hJxLzG','FitHeight','Normal','Tabloid'];_0x4fb6=function(){return _0x5e8dc8;};return _0x4fb6();}function _0x5996(_0x29a4e7,_0x42958b){const _0x4fb6b2=_0x4fb6();return _0x5996=function(_0x5996e,_0x2cd853){_0x5996e=_0x5996e-0xdc;let _0x39706c=_0x4fb6b2[_0x5996e];return _0x39706c;},_0x5996(_0x29a4e7,_0x42958b);}function N(_0x11729c,_0x1d2402){const _0x269a4b=_0x57252a,{w:_0x322f86,h:_0x323ab5}=g[_0x11729c],_0x395cde=_0x1d2402===i[_0x269a4b(0xdc)]?_0x322f86:_0x323ab5,_0xeee918=_0x1d2402===i[_0x269a4b(0xdc)]?_0x323ab5:_0x322f86,_0x10ff6f='\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'+_0x395cde+_0x269a4b(0xf3)+_0xeee918+_0x269a4b(0xfd)+l+',\x20.'+l+_0x269a4b(0xff)+p+_0x269a4b(0xe8)+_0xeee918+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x395cde+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x4f0d98=document[_0x269a4b(0xf8)]('style');return _0x4f0d98['innerHTML']=_0x10ff6f,_0x4f0d98[_0x269a4b(0xe0)]=_0x269a4b(0xf7),_0x4f0d98;}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 _0x86d8(){const _0x30735e=['Module','2863785wzeCgu','Folio','Wide','PrintPaperSize','Landscape','End','Middle','Start','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}','\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','FitHeight','4955656RUaIOu','PrintPaperMargin','Custom','None','UniverProPrint','toStringTag','722169RlsWqo','function','className','object','Normal','Narrow','Legal','2396084VFXUHZ','PaperMarginMap','printing-canvas','PRINT_CANVAS_CLASS','7BuqAyN','FitWidth','defineProperty','Executive','exports','56726irRHOZ','111vcQkMX','style','createElement','Tabloid','Portrait','Origin','innerHTML','Statement','8875656oYPXra','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','amd','2532588RiDjcw','PrintAlign','FitPage','\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.','Letter'];_0x86d8=function(){return _0x30735e;};return _0x86d8();}function _0x54a4(_0x10e376,_0x27b7fb){const _0x86d84e=_0x86d8();return _0x54a4=function(_0x54a41f,_0x2e1a2b){_0x54a41f=_0x54a41f-0xd1;let _0x4c563e=_0x86d84e[_0x54a41f];return _0x4c563e;},_0x54a4(_0x10e376,_0x27b7fb);}(function(_0x3ec559,_0x19d167){const _0x305368=_0x54a4,_0x4d9334=_0x3ec559();while(!![]){try{const _0x57ff37=parseInt(_0x305368(0xd5))/0x1+-parseInt(_0x305368(0xe5))/0x2*(-parseInt(_0x305368(0xe6))/0x3)+-parseInt(_0x305368(0xdc))/0x4+parseInt(_0x305368(0xf7))/0x5+parseInt(_0x305368(0xf1))/0x6+parseInt(_0x305368(0xe0))/0x7*(-parseInt(_0x305368(0x103))/0x8)+-parseInt(_0x305368(0xee))/0x9;if(_0x57ff37===_0x19d167)break;else _0x4d9334['push'](_0x4d9334['shift']());}catch(_0x390e60){_0x4d9334['push'](_0x4d9334['shift']());}}}(_0x86d8,0x89281),function(_0x21977a,_0x80950c){const _0x198943=_0x54a4;typeof exports==_0x198943(0xd8)&&typeof module<'u'?_0x80950c(exports):typeof define==_0x198943(0xd6)&&define[_0x198943(0xf0)]?define([_0x198943(0xe4)],_0x80950c):(_0x21977a=typeof globalThis<'u'?globalThis:_0x21977a||self,_0x80950c(_0x21977a[_0x198943(0xd3)]={}));}(this,function(_0x58a73c){'use strict';const _0x4a34fb=_0x54a4;var _0x3ac915=(_0x2b2b54=>(_0x2b2b54[_0x4a34fb(0xf5)]='Letter',_0x2b2b54[_0x4a34fb(0xe9)]=_0x4a34fb(0xe9),_0x2b2b54['Legal']=_0x4a34fb(0xdb),_0x2b2b54[_0x4a34fb(0xed)]=_0x4a34fb(0xed),_0x2b2b54['Executive']=_0x4a34fb(0xe3),_0x2b2b54[_0x4a34fb(0xf8)]=_0x4a34fb(0xf8),_0x2b2b54['A3']='A3',_0x2b2b54['A4']='A4',_0x2b2b54['A5']='A5',_0x2b2b54['B4']='B4',_0x2b2b54['B5']='B5',_0x2b2b54))(_0x3ac915||{}),_0x322170=(_0x2046b9=>(_0x2046b9[_0x4a34fb(0xea)]='Portrait',_0x2046b9[_0x4a34fb(0xfb)]=_0x4a34fb(0xfb),_0x2046b9))(_0x322170||{}),_0x21dc5f=(_0x281ff5=>(_0x281ff5[_0x4a34fb(0xeb)]=_0x4a34fb(0xeb),_0x281ff5['FitWidth']=_0x4a34fb(0xe1),_0x281ff5[_0x4a34fb(0x102)]=_0x4a34fb(0x102),_0x281ff5[_0x4a34fb(0xf3)]=_0x4a34fb(0xf3),_0x281ff5[_0x4a34fb(0xd1)]='Custom',_0x281ff5))(_0x21dc5f||{}),_0x4518d9=(_0x26d761=>(_0x26d761[_0x4a34fb(0xfe)]=_0x4a34fb(0xfe),_0x26d761[_0x4a34fb(0xfc)]=_0x4a34fb(0xfc),_0x26d761[_0x4a34fb(0xfd)]=_0x4a34fb(0xfd),_0x26d761))(_0x4518d9||{}),_0x109d8e=(_0xa52613=>(_0xa52613[_0x4a34fb(0xd9)]='Normal',_0xa52613[_0x4a34fb(0xda)]=_0x4a34fb(0xda),_0xa52613[_0x4a34fb(0xf9)]=_0x4a34fb(0xf9),_0xa52613[_0x4a34fb(0xd2)]=_0x4a34fb(0xd2),_0xa52613))(_0x109d8e||{});const _0x14dbda={[_0x3ac915['A3']]:{'w':0x463,'h':0x633},[_0x3ac915['A4']]:{'w':0x31a,'h':0x464},[_0x3ac915['A5']]:{'w':0x22f,'h':0x31a},[_0x3ac915['B4']]:{'w':0x3b0,'h':0x540},[_0x3ac915['B5']]:{'w':0x299,'h':0x3b0},[_0x3ac915[_0x4a34fb(0xe3)]]:{'w':0x2b8,'h':0x3f0},[_0x3ac915['Folio']]:{'w':0x330,'h':0x4e0},[_0x3ac915[_0x4a34fb(0xdb)]]:{'w':0x330,'h':0x540},[_0x3ac915[_0x4a34fb(0xf5)]]:{'w':0x330,'h':0x420},[_0x3ac915['Statement']]:{'w':0x210,'h':0x330},[_0x3ac915[_0x4a34fb(0xe9)]]:{'w':0x420,'h':0x660}},_0x42d430={[_0x109d8e[_0x4a34fb(0xd9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x109d8e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x109d8e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x109d8e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x547c09='printing-canvas-container',_0x188761=_0x4a34fb(0xde);function _0x5c8456(_0x29362f,_0x5dd5ee){const _0x3d0e88=_0x4a34fb,{w:_0x468881,h:_0x4981d1}=_0x14dbda[_0x29362f],_0x56ad0c=_0x5dd5ee===_0x322170[_0x3d0e88(0xea)]?_0x468881:_0x4981d1,_0x574544=_0x5dd5ee===_0x322170[_0x3d0e88(0xea)]?_0x4981d1:_0x468881,_0x363e8c=_0x3d0e88(0x101)+_0x56ad0c+'px\x20'+_0x574544+_0x3d0e88(0xff)+_0x547c09+',\x20.'+_0x547c09+_0x3d0e88(0xf4)+_0x188761+_0x3d0e88(0xef)+_0x574544+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56ad0c+_0x3d0e88(0x100),_0x58f9a6=document[_0x3d0e88(0xe8)](_0x3d0e88(0xe7));return _0x58f9a6[_0x3d0e88(0xec)]=_0x363e8c,_0x58f9a6[_0x3d0e88(0xd7)]='offline-printing-css',_0x58f9a6;}_0x58a73c[_0x4a34fb(0xdf)]=_0x188761,_0x58a73c['PRINT_CONTAINER_CLASS']=_0x547c09,_0x58a73c[_0x4a34fb(0xdd)]=_0x42d430,_0x58a73c['PaperSizePxMap']=_0x14dbda,_0x58a73c[_0x4a34fb(0xf2)]=_0x4518d9,_0x58a73c['PrintDirection']=_0x322170,_0x58a73c[_0x4a34fb(0x104)]=_0x109d8e,_0x58a73c[_0x4a34fb(0xfa)]=_0x3ac915,_0x58a73c['PrintScale']=_0x21dc5f,_0x58a73c['createPrintStyle']=_0x5c8456,Object[_0x4a34fb(0xe2)](_0x58a73c,Symbol[_0x4a34fb(0xd4)],{'value':_0x4a34fb(0xf6)});}));
1
+ function _0x495f(_0x57d3f9,_0x3519e5){const _0x388e6b=_0x388e();return _0x495f=function(_0x495ffe,_0x300709){_0x495ffe=_0x495ffe-0x167;let _0x4ab8bc=_0x388e6b[_0x495ffe];return _0x4ab8bc;},_0x495f(_0x57d3f9,_0x3519e5);}function _0x388e(){const _0x422d7b=['Module','FitHeight','Letter','PaperMarginMap','\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.','\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','Folio','34072Iqdaly','Origin','Landscape','printing-canvas-container','defineProperty','PrintScale','Start','Wide','8fwECbW','Normal','69gOBKIo','28578QprkVf','660090wYTwgv','style','Tabloid',',\x20.','3518630KHQEgz','Statement','PRINT_CONTAINER_CLASS','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.','682299NTprIQ','Narrow','toStringTag','End','Executive','Portrait','object','FitPage','createPrintStyle','Legal','px\x20','exports','7MsHbvC','function','createElement','PrintDirection','printing-canvas','FitWidth','72977NNFvKf','Custom','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','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','UniverProPrint','255278HZDVQN','offline-printing-css'];_0x388e=function(){return _0x422d7b;};return _0x388e();}(function(_0x1b19e8,_0x3c1963){const _0x277195=_0x495f,_0xc2e272=_0x1b19e8();while(!![]){try{const _0x2dda9d=parseInt(_0x277195(0x175))/0x1+parseInt(_0x277195(0x17c))/0x2+-parseInt(_0x277195(0x18f))/0x3*(-parseInt(_0x277195(0x185))/0x4)+parseInt(_0x277195(0x191))/0x5+parseInt(_0x277195(0x190))/0x6*(parseInt(_0x277195(0x16f))/0x7)+parseInt(_0x277195(0x18d))/0x8*(-parseInt(_0x277195(0x199))/0x9)+-parseInt(_0x277195(0x195))/0xa;if(_0x2dda9d===_0x3c1963)break;else _0xc2e272['push'](_0xc2e272['shift']());}catch(_0x4ab607){_0xc2e272['push'](_0xc2e272['shift']());}}}(_0x388e,0x19ca5),function(_0x676086,_0x189eaf){const _0x15063a=_0x495f;typeof exports==_0x15063a(0x169)&&typeof module<'u'?_0x189eaf(exports):typeof define==_0x15063a(0x170)&&define['amd']?define([_0x15063a(0x16e)],_0x189eaf):(_0x676086=typeof globalThis<'u'?globalThis:_0x676086||self,_0x189eaf(_0x676086[_0x15063a(0x17b)]={}));}(this,function(_0x25ceb8){'use strict';const _0x49e2f7=_0x495f;var _0x59a5a3=(_0x3c2d8d=>(_0x3c2d8d[_0x49e2f7(0x180)]=_0x49e2f7(0x180),_0x3c2d8d['Tabloid']=_0x49e2f7(0x193),_0x3c2d8d[_0x49e2f7(0x16c)]=_0x49e2f7(0x16c),_0x3c2d8d[_0x49e2f7(0x196)]=_0x49e2f7(0x196),_0x3c2d8d[_0x49e2f7(0x167)]=_0x49e2f7(0x167),_0x3c2d8d[_0x49e2f7(0x184)]=_0x49e2f7(0x184),_0x3c2d8d['A3']='A3',_0x3c2d8d['A4']='A4',_0x3c2d8d['A5']='A5',_0x3c2d8d['B4']='B4',_0x3c2d8d['B5']='B5',_0x3c2d8d))(_0x59a5a3||{}),_0x57b089=(_0x43d113=>(_0x43d113[_0x49e2f7(0x168)]=_0x49e2f7(0x168),_0x43d113[_0x49e2f7(0x187)]='Landscape',_0x43d113))(_0x57b089||{}),_0x488eb8=(_0x4de88f=>(_0x4de88f['Origin']=_0x49e2f7(0x186),_0x4de88f[_0x49e2f7(0x174)]=_0x49e2f7(0x174),_0x4de88f[_0x49e2f7(0x17f)]=_0x49e2f7(0x17f),_0x4de88f[_0x49e2f7(0x16a)]=_0x49e2f7(0x16a),_0x4de88f[_0x49e2f7(0x176)]=_0x49e2f7(0x176),_0x4de88f))(_0x488eb8||{}),_0x392e59=(_0x13dc33=>(_0x13dc33[_0x49e2f7(0x18b)]=_0x49e2f7(0x18b),_0x13dc33[_0x49e2f7(0x19c)]=_0x49e2f7(0x19c),_0x13dc33['Middle']='Middle',_0x13dc33))(_0x392e59||{}),_0x347004=(_0x1cee12=>(_0x1cee12[_0x49e2f7(0x18e)]=_0x49e2f7(0x18e),_0x1cee12[_0x49e2f7(0x19a)]='Narrow',_0x1cee12[_0x49e2f7(0x18c)]=_0x49e2f7(0x18c),_0x1cee12[_0x49e2f7(0x179)]=_0x49e2f7(0x179),_0x1cee12))(_0x347004||{});const _0x6f883c={[_0x59a5a3['A3']]:{'w':0x463,'h':0x633},[_0x59a5a3['A4']]:{'w':0x31a,'h':0x464},[_0x59a5a3['A5']]:{'w':0x22f,'h':0x31a},[_0x59a5a3['B4']]:{'w':0x3b0,'h':0x540},[_0x59a5a3['B5']]:{'w':0x299,'h':0x3b0},[_0x59a5a3[_0x49e2f7(0x167)]]:{'w':0x2b8,'h':0x3f0},[_0x59a5a3[_0x49e2f7(0x184)]]:{'w':0x330,'h':0x4e0},[_0x59a5a3[_0x49e2f7(0x16c)]]:{'w':0x330,'h':0x540},[_0x59a5a3[_0x49e2f7(0x180)]]:{'w':0x330,'h':0x420},[_0x59a5a3[_0x49e2f7(0x196)]]:{'w':0x210,'h':0x330},[_0x59a5a3['Tabloid']]:{'w':0x420,'h':0x660}},_0x468532={[_0x347004[_0x49e2f7(0x18e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x347004[_0x49e2f7(0x19a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x347004[_0x49e2f7(0x18c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x347004[_0x49e2f7(0x179)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4b0955=_0x49e2f7(0x188),_0x31b763=_0x49e2f7(0x173);function _0x58ea92(_0x2fdeec,_0x4fc0d4){const _0x46fd56=_0x49e2f7,{w:_0x2ae10f,h:_0x449a56}=_0x6f883c[_0x2fdeec],_0x2ffc21=_0x4fc0d4===_0x57b089['Portrait']?_0x2ae10f:_0x449a56,_0x523d5c=_0x4fc0d4===_0x57b089[_0x46fd56(0x168)]?_0x449a56:_0x2ae10f,_0x3963a6=_0x46fd56(0x183)+_0x2ffc21+_0x46fd56(0x16d)+_0x523d5c+_0x46fd56(0x198)+_0x4b0955+_0x46fd56(0x194)+_0x4b0955+_0x46fd56(0x182)+_0x31b763+_0x46fd56(0x178)+_0x523d5c+_0x46fd56(0x17a)+_0x2ffc21+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x41eed4=document[_0x46fd56(0x171)](_0x46fd56(0x192));return _0x41eed4['innerHTML']=_0x3963a6,_0x41eed4[_0x46fd56(0x177)]=_0x46fd56(0x17d),_0x41eed4;}_0x25ceb8['PRINT_CANVAS_CLASS']=_0x31b763,_0x25ceb8[_0x49e2f7(0x197)]=_0x4b0955,_0x25ceb8[_0x49e2f7(0x181)]=_0x468532,_0x25ceb8['PaperSizePxMap']=_0x6f883c,_0x25ceb8['PrintAlign']=_0x392e59,_0x25ceb8[_0x49e2f7(0x172)]=_0x57b089,_0x25ceb8['PrintPaperMargin']=_0x347004,_0x25ceb8['PrintPaperSize']=_0x59a5a3,_0x25ceb8[_0x49e2f7(0x18a)]=_0x488eb8,_0x25ceb8[_0x49e2f7(0x16b)]=_0x58ea92,Object[_0x49e2f7(0x189)](_0x25ceb8,Symbol[_0x49e2f7(0x19b)],{'value':_0x49e2f7(0x17e)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.5.0",
3
+ "version": "0.5.1-nightly.202412011605",
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.6.3",
46
- "vite": "^5.4.11",
47
- "vitest": "^2.1.5",
48
- "@univerjs-infra/shared": "0.5.0"
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
  ".": {