@univerjs-pro/print 0.25.1 → 1.0.0-alpha.1

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
- const _0xa3199c=_0x1fe9;(function(_0x30379f,_0x3aba7a){const _0x4e9253=_0x1fe9,_0x25b942=_0x30379f();while(!![]){try{const _0x31fb4f=parseInt(_0x4e9253(0x121))/0x1*(parseInt(_0x4e9253(0x12a))/0x2)+parseInt(_0x4e9253(0x143))/0x3+-parseInt(_0x4e9253(0x149))/0x4*(-parseInt(_0x4e9253(0x12c))/0x5)+parseInt(_0x4e9253(0x120))/0x6+-parseInt(_0x4e9253(0x142))/0x7*(-parseInt(_0x4e9253(0x127))/0x8)+parseInt(_0x4e9253(0x148))/0x9*(-parseInt(_0x4e9253(0x13a))/0xa)+-parseInt(_0x4e9253(0x134))/0xb*(parseInt(_0x4e9253(0x139))/0xc);if(_0x31fb4f===_0x3aba7a)break;else _0x25b942['push'](_0x25b942['shift']());}catch(_0x2e289e){_0x25b942['push'](_0x25b942['shift']());}}}(_0x6e7a,0xede27),Object['defineProperty'](exports,Symbol[_0xa3199c(0x146)],{'value':_0xa3199c(0x124)}));function _0x1fe9(_0x21e93f,_0x5edb16){_0x21e93f=_0x21e93f-0x120;const _0x6e7a93=_0x6e7a();let _0x1fe957=_0x6e7a93[_0x21e93f];return _0x1fe957;}let e=function(_0x53e5a7){const _0x29cda0=_0xa3199c;return _0x53e5a7[_0x29cda0(0x140)]=_0x29cda0(0x140),_0x53e5a7[_0x29cda0(0x122)]=_0x29cda0(0x122),_0x53e5a7;}({}),t=function(_0x59c2f8){const _0x57a688=_0xa3199c;return _0x59c2f8[_0x57a688(0x131)]='Origin',_0x59c2f8[_0x57a688(0x14a)]=_0x57a688(0x14a),_0x59c2f8[_0x57a688(0x14c)]=_0x57a688(0x14c),_0x59c2f8[_0x57a688(0x12f)]=_0x57a688(0x12f),_0x59c2f8[_0x57a688(0x129)]='Custom',_0x59c2f8;}({}),n=function(_0x5a77e6){const _0xfad47c=_0xa3199c;return _0x5a77e6[_0xfad47c(0x13e)]=_0xfad47c(0x13e),_0x5a77e6[_0xfad47c(0x128)]=_0xfad47c(0x128),_0x5a77e6[_0xfad47c(0x13b)]=_0xfad47c(0x13b),_0x5a77e6;}({}),r=function(_0x48c47d){const _0x4ea099=_0xa3199c;return _0x48c47d[_0x4ea099(0x126)]=_0x4ea099(0x126),_0x48c47d[_0x4ea099(0x132)]='Narrow',_0x48c47d['Wide']=_0x4ea099(0x125),_0x48c47d[_0x4ea099(0x145)]=_0x4ea099(0x145),_0x48c47d[_0x4ea099(0x129)]=_0x4ea099(0x129),_0x48c47d;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0xa3199c(0x137);function _0x6e7a(){const _0x402e6e=['PRINT_CANVAS_CLASS','15855XynCnu','1452756JAYquL','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','None','toStringTag','PRINT_CONTAINER_CLASS','207rPYLoN','7289148XqLLXr','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitHeight','className','7575300GVVxqU','2KgXAyk','Landscape','\x0a\x20\x20\x20\x20.','Module','Wide','Normal','120RGTcvF','End','Custom','932952kUpJHe','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','5FKNWgw','createElement','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitPage','innerHTML','Origin','Narrow','offline-printing-css','1901779aCkrYj','PrintScale','style','printing-canvas',',\x20.','144AGoyRp','646510iYZImY','Middle','PrintPaperMargin','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Start','PaperMarginMap','Portrait'];_0x6e7a=function(){return _0x402e6e;};return _0x6e7a();}function s(_0x2463a7,_0x10cdde,_0x22be27){const _0x452d2c=_0xa3199c;let _0x5c648d=_0x22be27===_0x452d2c(0x140)?_0x2463a7:_0x10cdde,_0x4c6233=_0x22be27==='Portrait'?_0x10cdde:_0x2463a7,_0x1cf5b5=_0x452d2c(0x123)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5c648d+'px\x20'+_0x4c6233+_0x452d2c(0x13d)+a+_0x452d2c(0x138)+a+_0x452d2c(0x144)+o+_0x452d2c(0x12e)+_0x4c6233+_0x452d2c(0x12b)+_0x5c648d+_0x452d2c(0x14b),_0x419a17=document[_0x452d2c(0x12d)](_0x452d2c(0x136));return _0x419a17[_0x452d2c(0x130)]=_0x1cf5b5,_0x419a17[_0x452d2c(0x14d)]=_0x452d2c(0x133),_0x419a17;}exports[_0xa3199c(0x141)]=o,exports[_0xa3199c(0x147)]=a,exports[_0xa3199c(0x13f)]=i,exports['PrintAlign']=n,exports['PrintDirection']=e,exports[_0xa3199c(0x13c)]=r,exports[_0xa3199c(0x135)]=t,exports['createPrintStyle']=s;
1
+ function _0xe3d4(){const _0x3be0dd=['style','PRINT_CANVAS_CLASS','End','583zvVSvx','className','Module','innerHTML','PrintPaperMargin','PRINT_CONTAINER_CLASS','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','toStringTag','px\x20','1641774ZGHDSG','7145vBThfo','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','FitWidth','599988OZSLqa','6000mpQOXi','Origin','defineProperty','Narrow','Normal','5994096aovDMb','Custom','Start','FitPage','Middle','Portrait','PrintScale','Landscape','341001oZPJkO','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','PrintAlign','PrintDirection','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','printing-canvas','232TKsgjc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',',\x20.','267407mIlZkM','360qlpAcs','createPrintStyle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','1521600WVgafj','None','offline-printing-css','6QweZaY','FitHeight'];_0xe3d4=function(){return _0x3be0dd;};return _0xe3d4();}const _0x52c6ab=_0x47b9;(function(_0x28407d,_0x40d1ae){const _0x5008f3=_0x47b9,_0x120a67=_0x28407d();while(!![]){try{const _0xa4d60d=parseInt(_0x5008f3(0xfc))/0x1+parseInt(_0x5008f3(0xff))/0x2*(parseInt(_0x5008f3(0x10d))/0x3)+parseInt(_0x5008f3(0x117))/0x4+-parseInt(_0x5008f3(0x10e))/0x5*(parseInt(_0x5008f3(0x112))/0x6)+parseInt(_0x5008f3(0xf8))/0x7*(-parseInt(_0x5008f3(0xf5))/0x8)+-parseInt(_0x5008f3(0xed))/0x9*(-parseInt(_0x5008f3(0xf9))/0xa)+-parseInt(_0x5008f3(0x104))/0xb*(parseInt(_0x5008f3(0x111))/0xc);if(_0xa4d60d===_0x40d1ae)break;else _0x120a67['push'](_0x120a67['shift']());}catch(_0x5b9569){_0x120a67['push'](_0x120a67['shift']());}}}(_0xe3d4,0xccdd6),Object[_0x52c6ab(0x114)](exports,Symbol[_0x52c6ab(0x10b)],{'value':_0x52c6ab(0x106)}));let e=function(_0x2fdc40){const _0x11fdd4=_0x52c6ab;return _0x2fdc40[_0x11fdd4(0xea)]=_0x11fdd4(0xea),_0x2fdc40[_0x11fdd4(0xec)]=_0x11fdd4(0xec),_0x2fdc40;}({}),t=function(_0x4b661e){const _0x121087=_0x52c6ab;return _0x4b661e[_0x121087(0x113)]='Origin',_0x4b661e['FitWidth']=_0x121087(0x110),_0x4b661e[_0x121087(0x100)]='FitHeight',_0x4b661e[_0x121087(0xe8)]=_0x121087(0xe8),_0x4b661e[_0x121087(0x118)]='Custom',_0x4b661e;}({}),n=function(_0x3a6b64){const _0x1dc140=_0x52c6ab;return _0x3a6b64[_0x1dc140(0xe7)]='Start',_0x3a6b64[_0x1dc140(0x103)]=_0x1dc140(0x103),_0x3a6b64[_0x1dc140(0xe9)]='Middle',_0x3a6b64;}({}),r=function(_0x4f48d4){const _0xad291a=_0x52c6ab;return _0x4f48d4[_0xad291a(0x116)]='Normal',_0x4f48d4[_0xad291a(0x115)]=_0xad291a(0x115),_0x4f48d4[_0xad291a(0xf1)]=_0xad291a(0xf1),_0x4f48d4[_0xad291a(0xfd)]='None',_0x4f48d4[_0xad291a(0x118)]=_0xad291a(0x118),_0x4f48d4;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x52c6ab(0xf4);function _0x47b9(_0x1f3645,_0x22c6e4){_0x1f3645=_0x1f3645-0xe7;const _0xe3d46f=_0xe3d4();let _0x47b9c1=_0xe3d46f[_0x1f3645];return _0x47b9c1;}function s(_0x1c3ddf,_0x368f9b,_0x24957e){const _0x4ae1dd=_0x52c6ab;let _0x1f043f=_0x24957e===_0x4ae1dd(0xea)?_0x1c3ddf:_0x368f9b,_0x416bdb=_0x24957e===_0x4ae1dd(0xea)?_0x368f9b:_0x1c3ddf,_0xe168de='\x0a\x20\x20\x20\x20.'+o+_0x4ae1dd(0x10f)+_0x1f043f+_0x4ae1dd(0x10c)+_0x416bdb+_0x4ae1dd(0x10a)+a+_0x4ae1dd(0xf7)+a+_0x4ae1dd(0xee)+o+_0x4ae1dd(0xfb)+_0x416bdb+_0x4ae1dd(0xf2)+_0x1f043f+_0x4ae1dd(0xf6),_0x24fe9b=document[_0x4ae1dd(0xf3)](_0x4ae1dd(0x101));return _0x24fe9b[_0x4ae1dd(0x107)]=_0xe168de,_0x24fe9b[_0x4ae1dd(0x105)]=_0x4ae1dd(0xfe),_0x24fe9b;}exports[_0x52c6ab(0x102)]=o,exports[_0x52c6ab(0x109)]=a,exports['PaperMarginMap']=i,exports[_0x52c6ab(0xef)]=n,exports[_0x52c6ab(0xf0)]=e,exports[_0x52c6ab(0x108)]=r,exports[_0x52c6ab(0xeb)]=t,exports[_0x52c6ab(0xfa)]=s;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x53af64=_0x4843;(function(_0x4c5594,_0x20a193){const _0x46ce16=_0x4843,_0x30bae6=_0x4c5594();while(!![]){try{const _0x8390ee=-parseInt(_0x46ce16(0xbb))/0x1*(parseInt(_0x46ce16(0x99))/0x2)+-parseInt(_0x46ce16(0xa0))/0x3*(parseInt(_0x46ce16(0xb7))/0x4)+-parseInt(_0x46ce16(0x9c))/0x5+parseInt(_0x46ce16(0xb1))/0x6*(parseInt(_0x46ce16(0xa4))/0x7)+parseInt(_0x46ce16(0xaf))/0x8+-parseInt(_0x46ce16(0x9d))/0x9+parseInt(_0x46ce16(0xb2))/0xa;if(_0x8390ee===_0x20a193)break;else _0x30bae6['push'](_0x30bae6['shift']());}catch(_0x4efe55){_0x30bae6['push'](_0x30bae6['shift']());}}}(_0x2323,0xee32d));let e=function(_0x1eb3e6){const _0x3dd54a=_0x4843;return _0x1eb3e6[_0x3dd54a(0xa3)]=_0x3dd54a(0xa3),_0x1eb3e6['Landscape']=_0x3dd54a(0xb8),_0x1eb3e6;}({}),t=function(_0x515587){const _0x38172c=_0x4843;return _0x515587[_0x38172c(0xb4)]=_0x38172c(0xb4),_0x515587[_0x38172c(0x9f)]=_0x38172c(0x9f),_0x515587[_0x38172c(0xa1)]='FitHeight',_0x515587['FitPage']=_0x38172c(0x97),_0x515587[_0x38172c(0x9e)]=_0x38172c(0x9e),_0x515587;}({}),n=function(_0x564b11){const _0x391696=_0x4843;return _0x564b11['Start']=_0x391696(0xb5),_0x564b11['End']=_0x391696(0xad),_0x564b11['Middle']=_0x391696(0xa6),_0x564b11;}({}),r=function(_0x2858ef){const _0x46aa70=_0x4843;return _0x2858ef[_0x46aa70(0xb3)]='Normal',_0x2858ef['Narrow']=_0x46aa70(0x9a),_0x2858ef[_0x46aa70(0xba)]='Wide',_0x2858ef['None']=_0x46aa70(0x9b),_0x2858ef['Custom']='Custom',_0x2858ef;}({});function _0x4843(_0x2b0355,_0x4c4332){_0x2b0355=_0x2b0355-0x97;const _0x2323d4=_0x2323();let _0x484320=_0x2323d4[_0x2b0355];return _0x484320;}function _0x2323(){const _0x3f91eb=['End','\x0a\x20\x20\x20\x20.','4045232PcSHea','printing-canvas-container','138nHswJc','49780550RMXXmI','Normal','Origin','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','43096StgLeh','Landscape','createElement','Wide','1024871cQQXkq','FitPage',',\x20.','2BgnDbD','Narrow','None','2306990jebBfO','13670550mueNoQ','Custom','FitWidth','534ZPzQIs','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Portrait','126287pwUpsX','offline-printing-css','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','innerHTML','className','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','style'];_0x2323=function(){return _0x3f91eb;};return _0x2323();}const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x53af64(0xb0),o='printing-canvas';function s(_0x1682b8,_0x5532ef,_0x5beb0d){const _0x2fff57=_0x53af64;let _0x1f99a6=_0x5beb0d==='Portrait'?_0x1682b8:_0x5532ef,_0x40cd2d=_0x5beb0d===_0x2fff57(0xa3)?_0x5532ef:_0x1682b8,_0x171792=_0x2fff57(0xae)+o+_0x2fff57(0xa2)+_0x1f99a6+'px\x20'+_0x40cd2d+_0x2fff57(0xab)+a+_0x2fff57(0x98)+a+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+o+_0x2fff57(0xa8)+_0x40cd2d+_0x2fff57(0xb6)+_0x1f99a6+_0x2fff57(0xa7),_0x35603e=document[_0x2fff57(0xb9)](_0x2fff57(0xac));return _0x35603e[_0x2fff57(0xa9)]=_0x171792,_0x35603e[_0x2fff57(0xaa)]=_0x2fff57(0xa5),_0x35603e;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
1
+ const _0x20f4f1=_0x218f;(function(_0x180259,_0x4ceb2f){const _0x499cc0=_0x218f,_0x2fb154=_0x180259();while(!![]){try{const _0x141d85=-parseInt(_0x499cc0(0x1b6))/0x1*(parseInt(_0x499cc0(0x1c1))/0x2)+parseInt(_0x499cc0(0x1af))/0x3*(-parseInt(_0x499cc0(0x1ae))/0x4)+parseInt(_0x499cc0(0x1c2))/0x5*(parseInt(_0x499cc0(0x1a3))/0x6)+-parseInt(_0x499cc0(0x1b7))/0x7+-parseInt(_0x499cc0(0x1bf))/0x8+-parseInt(_0x499cc0(0x1a6))/0x9*(-parseInt(_0x499cc0(0x1a5))/0xa)+parseInt(_0x499cc0(0x1b2))/0xb;if(_0x141d85===_0x4ceb2f)break;else _0x2fb154['push'](_0x2fb154['shift']());}catch(_0x3e90cb){_0x2fb154['push'](_0x2fb154['shift']());}}}(_0x4132,0xf3afd));let e=function(_0x87eea8){const _0x2489df=_0x218f;return _0x87eea8[_0x2489df(0x1bb)]='Portrait',_0x87eea8[_0x2489df(0x1ba)]='Landscape',_0x87eea8;}({}),t=function(_0x4dd7c7){const _0x5d4bec=_0x218f;return _0x4dd7c7[_0x5d4bec(0x1bc)]=_0x5d4bec(0x1bc),_0x4dd7c7[_0x5d4bec(0x1a2)]='FitWidth',_0x4dd7c7['FitHeight']=_0x5d4bec(0x1b3),_0x4dd7c7[_0x5d4bec(0x1bd)]=_0x5d4bec(0x1bd),_0x4dd7c7['Custom']='Custom',_0x4dd7c7;}({}),n=function(_0x17d8ed){const _0x39f197=_0x218f;return _0x17d8ed['Start']=_0x39f197(0x1b4),_0x17d8ed['End']=_0x39f197(0x1c0),_0x17d8ed[_0x39f197(0x1a9)]=_0x39f197(0x1a9),_0x17d8ed;}({}),r=function(_0xa4c55a){const _0x149189=_0x218f;return _0xa4c55a[_0x149189(0x1be)]=_0x149189(0x1be),_0xa4c55a[_0x149189(0x1b9)]=_0x149189(0x1b9),_0xa4c55a['Wide']=_0x149189(0x1a4),_0xa4c55a[_0x149189(0x1b1)]=_0x149189(0x1b1),_0xa4c55a[_0x149189(0x1b8)]='Custom',_0xa4c55a;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x20f4f1(0x1ad),o=_0x20f4f1(0x1b5);function _0x4132(){const _0x4c273c=['Start','printing-canvas','9014ETyqIn','1848819vVGiMZ','Custom','Narrow','Landscape','Portrait','Origin','FitPage','Normal','10772032mLQKTj','End','298RzguzQ','3695xcJraK','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitWidth','12486kTPyli','Wide','45830DFoWyW','3402yuFvTj','style','innerHTML','Middle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','px\x20','printing-canvas-container','3140584qhtuIv','3QbgZbt','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','None','16134371xYJHUq','FitHeight'];_0x4132=function(){return _0x4c273c;};return _0x4132();}function _0x218f(_0x301b47,_0x7b8b94){_0x301b47=_0x301b47-0x1a1;const _0x4132dc=_0x4132();let _0x218f93=_0x4132dc[_0x301b47];return _0x218f93;}function s(_0x388dde,_0x5b1cbd,_0x5f47d6){const _0x5132f1=_0x20f4f1;let _0x4dd5e8=_0x5f47d6===_0x5132f1(0x1bb)?_0x388dde:_0x5b1cbd,_0x352fc2=_0x5f47d6==='Portrait'?_0x5b1cbd:_0x388dde,_0x77f566='\x0a\x20\x20\x20\x20.'+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x4dd5e8+_0x5132f1(0x1ac)+_0x352fc2+_0x5132f1(0x1a1)+a+',\x20.'+a+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+o+_0x5132f1(0x1aa)+_0x352fc2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4dd5e8+_0x5132f1(0x1b0),_0xeaab11=document['createElement'](_0x5132f1(0x1a7));return _0xeaab11[_0x5132f1(0x1a8)]=_0x77f566,_0xeaab11[_0x5132f1(0x1ab)]='offline-printing-css',_0xeaab11;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x53af64=_0x4843;(function(_0x4c5594,_0x20a193){const _0x46ce16=_0x4843,_0x30bae6=_0x4c5594();while(!![]){try{const _0x8390ee=-parseInt(_0x46ce16(0xbb))/0x1*(parseInt(_0x46ce16(0x99))/0x2)+-parseInt(_0x46ce16(0xa0))/0x3*(parseInt(_0x46ce16(0xb7))/0x4)+-parseInt(_0x46ce16(0x9c))/0x5+parseInt(_0x46ce16(0xb1))/0x6*(parseInt(_0x46ce16(0xa4))/0x7)+parseInt(_0x46ce16(0xaf))/0x8+-parseInt(_0x46ce16(0x9d))/0x9+parseInt(_0x46ce16(0xb2))/0xa;if(_0x8390ee===_0x20a193)break;else _0x30bae6['push'](_0x30bae6['shift']());}catch(_0x4efe55){_0x30bae6['push'](_0x30bae6['shift']());}}}(_0x2323,0xee32d));let e=function(_0x1eb3e6){const _0x3dd54a=_0x4843;return _0x1eb3e6[_0x3dd54a(0xa3)]=_0x3dd54a(0xa3),_0x1eb3e6['Landscape']=_0x3dd54a(0xb8),_0x1eb3e6;}({}),t=function(_0x515587){const _0x38172c=_0x4843;return _0x515587[_0x38172c(0xb4)]=_0x38172c(0xb4),_0x515587[_0x38172c(0x9f)]=_0x38172c(0x9f),_0x515587[_0x38172c(0xa1)]='FitHeight',_0x515587['FitPage']=_0x38172c(0x97),_0x515587[_0x38172c(0x9e)]=_0x38172c(0x9e),_0x515587;}({}),n=function(_0x564b11){const _0x391696=_0x4843;return _0x564b11['Start']=_0x391696(0xb5),_0x564b11['End']=_0x391696(0xad),_0x564b11['Middle']=_0x391696(0xa6),_0x564b11;}({}),r=function(_0x2858ef){const _0x46aa70=_0x4843;return _0x2858ef[_0x46aa70(0xb3)]='Normal',_0x2858ef['Narrow']=_0x46aa70(0x9a),_0x2858ef[_0x46aa70(0xba)]='Wide',_0x2858ef['None']=_0x46aa70(0x9b),_0x2858ef['Custom']='Custom',_0x2858ef;}({});function _0x4843(_0x2b0355,_0x4c4332){_0x2b0355=_0x2b0355-0x97;const _0x2323d4=_0x2323();let _0x484320=_0x2323d4[_0x2b0355];return _0x484320;}function _0x2323(){const _0x3f91eb=['End','\x0a\x20\x20\x20\x20.','4045232PcSHea','printing-canvas-container','138nHswJc','49780550RMXXmI','Normal','Origin','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','43096StgLeh','Landscape','createElement','Wide','1024871cQQXkq','FitPage',',\x20.','2BgnDbD','Narrow','None','2306990jebBfO','13670550mueNoQ','Custom','FitWidth','534ZPzQIs','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Portrait','126287pwUpsX','offline-printing-css','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','innerHTML','className','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','style'];_0x2323=function(){return _0x3f91eb;};return _0x2323();}const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x53af64(0xb0),o='printing-canvas';function s(_0x1682b8,_0x5532ef,_0x5beb0d){const _0x2fff57=_0x53af64;let _0x1f99a6=_0x5beb0d==='Portrait'?_0x1682b8:_0x5532ef,_0x40cd2d=_0x5beb0d===_0x2fff57(0xa3)?_0x5532ef:_0x1682b8,_0x171792=_0x2fff57(0xae)+o+_0x2fff57(0xa2)+_0x1f99a6+'px\x20'+_0x40cd2d+_0x2fff57(0xab)+a+_0x2fff57(0x98)+a+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+o+_0x2fff57(0xa8)+_0x40cd2d+_0x2fff57(0xb6)+_0x1f99a6+_0x2fff57(0xa7),_0x35603e=document[_0x2fff57(0xb9)](_0x2fff57(0xac));return _0x35603e[_0x2fff57(0xa9)]=_0x171792,_0x35603e[_0x2fff57(0xaa)]=_0x2fff57(0xa5),_0x35603e;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
1
+ const _0x20f4f1=_0x218f;(function(_0x180259,_0x4ceb2f){const _0x499cc0=_0x218f,_0x2fb154=_0x180259();while(!![]){try{const _0x141d85=-parseInt(_0x499cc0(0x1b6))/0x1*(parseInt(_0x499cc0(0x1c1))/0x2)+parseInt(_0x499cc0(0x1af))/0x3*(-parseInt(_0x499cc0(0x1ae))/0x4)+parseInt(_0x499cc0(0x1c2))/0x5*(parseInt(_0x499cc0(0x1a3))/0x6)+-parseInt(_0x499cc0(0x1b7))/0x7+-parseInt(_0x499cc0(0x1bf))/0x8+-parseInt(_0x499cc0(0x1a6))/0x9*(-parseInt(_0x499cc0(0x1a5))/0xa)+parseInt(_0x499cc0(0x1b2))/0xb;if(_0x141d85===_0x4ceb2f)break;else _0x2fb154['push'](_0x2fb154['shift']());}catch(_0x3e90cb){_0x2fb154['push'](_0x2fb154['shift']());}}}(_0x4132,0xf3afd));let e=function(_0x87eea8){const _0x2489df=_0x218f;return _0x87eea8[_0x2489df(0x1bb)]='Portrait',_0x87eea8[_0x2489df(0x1ba)]='Landscape',_0x87eea8;}({}),t=function(_0x4dd7c7){const _0x5d4bec=_0x218f;return _0x4dd7c7[_0x5d4bec(0x1bc)]=_0x5d4bec(0x1bc),_0x4dd7c7[_0x5d4bec(0x1a2)]='FitWidth',_0x4dd7c7['FitHeight']=_0x5d4bec(0x1b3),_0x4dd7c7[_0x5d4bec(0x1bd)]=_0x5d4bec(0x1bd),_0x4dd7c7['Custom']='Custom',_0x4dd7c7;}({}),n=function(_0x17d8ed){const _0x39f197=_0x218f;return _0x17d8ed['Start']=_0x39f197(0x1b4),_0x17d8ed['End']=_0x39f197(0x1c0),_0x17d8ed[_0x39f197(0x1a9)]=_0x39f197(0x1a9),_0x17d8ed;}({}),r=function(_0xa4c55a){const _0x149189=_0x218f;return _0xa4c55a[_0x149189(0x1be)]=_0x149189(0x1be),_0xa4c55a[_0x149189(0x1b9)]=_0x149189(0x1b9),_0xa4c55a['Wide']=_0x149189(0x1a4),_0xa4c55a[_0x149189(0x1b1)]=_0x149189(0x1b1),_0xa4c55a[_0x149189(0x1b8)]='Custom',_0xa4c55a;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x20f4f1(0x1ad),o=_0x20f4f1(0x1b5);function _0x4132(){const _0x4c273c=['Start','printing-canvas','9014ETyqIn','1848819vVGiMZ','Custom','Narrow','Landscape','Portrait','Origin','FitPage','Normal','10772032mLQKTj','End','298RzguzQ','3695xcJraK','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitWidth','12486kTPyli','Wide','45830DFoWyW','3402yuFvTj','style','innerHTML','Middle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','px\x20','printing-canvas-container','3140584qhtuIv','3QbgZbt','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','None','16134371xYJHUq','FitHeight'];_0x4132=function(){return _0x4c273c;};return _0x4132();}function _0x218f(_0x301b47,_0x7b8b94){_0x301b47=_0x301b47-0x1a1;const _0x4132dc=_0x4132();let _0x218f93=_0x4132dc[_0x301b47];return _0x218f93;}function s(_0x388dde,_0x5b1cbd,_0x5f47d6){const _0x5132f1=_0x20f4f1;let _0x4dd5e8=_0x5f47d6===_0x5132f1(0x1bb)?_0x388dde:_0x5b1cbd,_0x352fc2=_0x5f47d6==='Portrait'?_0x5b1cbd:_0x388dde,_0x77f566='\x0a\x20\x20\x20\x20.'+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x4dd5e8+_0x5132f1(0x1ac)+_0x352fc2+_0x5132f1(0x1a1)+a+',\x20.'+a+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+o+_0x5132f1(0x1aa)+_0x352fc2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4dd5e8+_0x5132f1(0x1b0),_0xeaab11=document['createElement'](_0x5132f1(0x1a7));return _0xeaab11[_0x5132f1(0x1a8)]=_0x77f566,_0xeaab11[_0x5132f1(0x1ab)]='offline-printing-css',_0xeaab11;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x295a(_0x34e463,_0x8db884){_0x34e463=_0x34e463-0x168;const _0x584bc2=_0x584b();let _0x295a3c=_0x584bc2[_0x34e463];return _0x295a3c;}function _0x584b(){const _0x322676=['PrintDirection','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3140634yUXRxK','UniverProPrint','style','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','innerHTML','8991984cxgjzh','printing-canvas-container','exports','PRINT_CONTAINER_CLASS','PaperMarginMap','offline-printing-css','4385655iwZKRF','Normal','73805tuAhGI','defineProperty','createPrintStyle','2180860knZZtQ','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20',',\x20.','Wide','FitPage','32613zdNRCf','End','FitWidth','Start','Module','FitHeight','className','None','Portrait','Custom','toStringTag','Middle','amd','7317555kiCVMF','px\x20','Landscape','548tymNqo','createElement','Origin','\x0a\x20\x20\x20\x20.','PRINT_CANVAS_CLASS','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'];_0x584b=function(){return _0x322676;};return _0x584b();}(function(_0x3cd794,_0x11689f){const _0x370ad3=_0x295a,_0x525727=_0x3cd794();while(!![]){try{const _0x124ae5=-parseInt(_0x370ad3(0x16f))/0x1+parseInt(_0x370ad3(0x172))/0x2+-parseInt(_0x370ad3(0x177))/0x3*(parseInt(_0x370ad3(0x187))/0x4)+parseInt(_0x370ad3(0x16d))/0x5+parseInt(_0x370ad3(0x18f))/0x6+parseInt(_0x370ad3(0x184))/0x7+-parseInt(_0x370ad3(0x194))/0x8;if(_0x124ae5===_0x11689f)break;else _0x525727['push'](_0x525727['shift']());}catch(_0x2edb80){_0x525727['push'](_0x525727['shift']());}}}(_0x584b,0xcf553),function(_0x109480,_0x2cd812){const _0x3566ca=_0x295a;typeof exports=='object'&&typeof module<'u'?_0x2cd812(exports):typeof define=='function'&&define[_0x3566ca(0x183)]?define([_0x3566ca(0x169)],_0x2cd812):(_0x109480=typeof globalThis<'u'?globalThis:_0x109480||self,_0x2cd812(_0x109480[_0x3566ca(0x190)]={}));}(this,function(_0x4957ef){const _0x23a23a=_0x295a;Object[_0x23a23a(0x170)](_0x4957ef,Symbol[_0x23a23a(0x181)],{'value':_0x23a23a(0x17b)});let _0x3a5b53=function(_0x122de1){const _0x143b7d=_0x23a23a;return _0x122de1[_0x143b7d(0x17f)]='Portrait',_0x122de1['Landscape']=_0x143b7d(0x186),_0x122de1;}({}),_0x37c038=function(_0x58226c){const _0x320d5e=_0x23a23a;return _0x58226c[_0x320d5e(0x189)]=_0x320d5e(0x189),_0x58226c[_0x320d5e(0x179)]='FitWidth',_0x58226c[_0x320d5e(0x17c)]=_0x320d5e(0x17c),_0x58226c['FitPage']=_0x320d5e(0x176),_0x58226c[_0x320d5e(0x180)]=_0x320d5e(0x180),_0x58226c;}({}),_0x579176=function(_0x3c1e9c){const _0x2339db=_0x23a23a;return _0x3c1e9c[_0x2339db(0x17a)]=_0x2339db(0x17a),_0x3c1e9c[_0x2339db(0x178)]=_0x2339db(0x178),_0x3c1e9c[_0x2339db(0x182)]=_0x2339db(0x182),_0x3c1e9c;}({}),_0x14f3a0=function(_0x5a700c){const _0x2181b3=_0x23a23a;return _0x5a700c[_0x2181b3(0x16e)]=_0x2181b3(0x16e),_0x5a700c['Narrow']='Narrow',_0x5a700c['Wide']=_0x2181b3(0x175),_0x5a700c[_0x2181b3(0x17e)]='None',_0x5a700c[_0x2181b3(0x180)]=_0x2181b3(0x180),_0x5a700c;}({}),_0x541031={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1e0f41=_0x23a23a(0x168),_0x4fc5ea='printing-canvas';function _0x5aa180(_0x50c1a8,_0x179a0a,_0x3f6df5){const _0xf73308=_0x23a23a;let _0x25bd48=_0x3f6df5===_0xf73308(0x17f)?_0x50c1a8:_0x179a0a,_0x3f0f11=_0x3f6df5===_0xf73308(0x17f)?_0x179a0a:_0x50c1a8,_0x1f85b5=_0xf73308(0x18a)+_0x4fc5ea+_0xf73308(0x192)+_0x25bd48+_0xf73308(0x185)+_0x3f0f11+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x1e0f41+_0xf73308(0x174)+_0x1e0f41+_0xf73308(0x18c)+_0x4fc5ea+_0xf73308(0x173)+_0x3f0f11+_0xf73308(0x18e)+_0x25bd48+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x2c4321=document[_0xf73308(0x188)](_0xf73308(0x191));return _0x2c4321[_0xf73308(0x193)]=_0x1f85b5,_0x2c4321[_0xf73308(0x17d)]=_0xf73308(0x16c),_0x2c4321;}_0x4957ef[_0x23a23a(0x18b)]=_0x4fc5ea,_0x4957ef[_0x23a23a(0x16a)]=_0x1e0f41,_0x4957ef[_0x23a23a(0x16b)]=_0x541031,_0x4957ef['PrintAlign']=_0x579176,_0x4957ef[_0x23a23a(0x18d)]=_0x3a5b53,_0x4957ef['PrintPaperMargin']=_0x14f3a0,_0x4957ef['PrintScale']=_0x37c038,_0x4957ef[_0x23a23a(0x171)]=_0x5aa180;}));
1
+ function _0x1ea7(_0x5e8fc0,_0x5ba1a8){_0x5e8fc0=_0x5e8fc0-0x9e;const _0x23f424=_0x23f4();let _0x1ea77c=_0x23f424[_0x5e8fc0];return _0x1ea77c;}(function(_0x3c49cd,_0x2481b4){const _0x3aea21=_0x1ea7,_0x4aca3e=_0x3c49cd();while(!![]){try{const _0x5eaac7=parseInt(_0x3aea21(0xb4))/0x1+-parseInt(_0x3aea21(0xc1))/0x2*(parseInt(_0x3aea21(0xc5))/0x3)+-parseInt(_0x3aea21(0xbc))/0x4+parseInt(_0x3aea21(0xb3))/0x5+parseInt(_0x3aea21(0xc3))/0x6+parseInt(_0x3aea21(0xb7))/0x7+-parseInt(_0x3aea21(0x9e))/0x8;if(_0x5eaac7===_0x2481b4)break;else _0x4aca3e['push'](_0x4aca3e['shift']());}catch(_0x6160d6){_0x4aca3e['push'](_0x4aca3e['shift']());}}}(_0x23f4,0x4b7b3),function(_0x16a93b,_0x4053cd){const _0x9cc85c=_0x1ea7;typeof exports==_0x9cc85c(0xcc)&&typeof module<'u'?_0x4053cd(exports):typeof define==_0x9cc85c(0xbe)&&define[_0x9cc85c(0xa4)]?define([_0x9cc85c(0xac)],_0x4053cd):(_0x16a93b=typeof globalThis<'u'?globalThis:_0x16a93b||self,_0x4053cd(_0x16a93b[_0x9cc85c(0x9f)]={}));}(this,function(_0x28cb5b){const _0x3e805c=_0x1ea7;Object[_0x3e805c(0xaf)](_0x28cb5b,Symbol[_0x3e805c(0xc4)],{'value':_0x3e805c(0xba)});let _0x177eb9=function(_0x12b4cb){const _0x8b0d30=_0x3e805c;return _0x12b4cb[_0x8b0d30(0xa3)]='Portrait',_0x12b4cb[_0x8b0d30(0xc7)]=_0x8b0d30(0xc7),_0x12b4cb;}({}),_0x1d8e81=function(_0x502586){const _0x4ede08=_0x3e805c;return _0x502586['Origin']=_0x4ede08(0xbb),_0x502586[_0x4ede08(0xcd)]=_0x4ede08(0xcd),_0x502586[_0x4ede08(0xb8)]=_0x4ede08(0xb8),_0x502586[_0x4ede08(0xb9)]=_0x4ede08(0xb9),_0x502586[_0x4ede08(0xb0)]='Custom',_0x502586;}({}),_0x17ad25=function(_0xeb9e66){const _0x2cbf3c=_0x3e805c;return _0xeb9e66['Start']='Start',_0xeb9e66[_0x2cbf3c(0xa8)]=_0x2cbf3c(0xa8),_0xeb9e66['Middle']=_0x2cbf3c(0xc8),_0xeb9e66;}({}),_0x35b8f3=function(_0x5bf4d2){const _0xf1d282=_0x3e805c;return _0x5bf4d2[_0xf1d282(0xc2)]=_0xf1d282(0xc2),_0x5bf4d2[_0xf1d282(0xc0)]='Narrow',_0x5bf4d2[_0xf1d282(0xb2)]=_0xf1d282(0xb2),_0x5bf4d2[_0xf1d282(0xa1)]=_0xf1d282(0xa1),_0x5bf4d2['Custom']=_0xf1d282(0xb0),_0x5bf4d2;}({}),_0x2d148e={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4851e8='printing-canvas-container',_0xbda53e=_0x3e805c(0xb1);function _0x4e55fb(_0x3c58d7,_0x4cc40f,_0x3a2e6c){const _0x1b636d=_0x3e805c;let _0x3b2b01=_0x3a2e6c==='Portrait'?_0x3c58d7:_0x4cc40f,_0x10240e=_0x3a2e6c===_0x1b636d(0xa3)?_0x4cc40f:_0x3c58d7,_0x84e44=_0x1b636d(0xbd)+_0xbda53e+_0x1b636d(0xa9)+_0x3b2b01+_0x1b636d(0xad)+_0x10240e+_0x1b636d(0xc9)+_0x4851e8+',\x20.'+_0x4851e8+_0x1b636d(0xc6)+_0xbda53e+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x10240e+_0x1b636d(0xa7)+_0x3b2b01+_0x1b636d(0xb5),_0x280902=document['createElement']('style');return _0x280902[_0x1b636d(0xcb)]=_0x84e44,_0x280902[_0x1b636d(0xae)]=_0x1b636d(0xca),_0x280902;}_0x28cb5b[_0x3e805c(0xab)]=_0xbda53e,_0x28cb5b[_0x3e805c(0xbf)]=_0x4851e8,_0x28cb5b[_0x3e805c(0xa6)]=_0x2d148e,_0x28cb5b[_0x3e805c(0xa0)]=_0x17ad25,_0x28cb5b[_0x3e805c(0xb6)]=_0x177eb9,_0x28cb5b[_0x3e805c(0xa2)]=_0x35b8f3,_0x28cb5b[_0x3e805c(0xaa)]=_0x1d8e81,_0x28cb5b[_0x3e805c(0xa5)]=_0x4e55fb;}));function _0x23f4(){const _0x55f0b2=['function','PRINT_CONTAINER_CLASS','Narrow','58cDfbkI','Normal','3512844ENReeB','toStringTag','53253rlunHR','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Landscape','Middle','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','offline-printing-css','innerHTML','object','FitWidth','7406328xLaTId','UniverProPrint','PrintAlign','None','PrintPaperMargin','Portrait','amd','createPrintStyle','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','PrintScale','PRINT_CANVAS_CLASS','exports','px\x20','className','defineProperty','Custom','printing-canvas','Wide','2753935YmabSA','585569YXUjVc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PrintDirection','1028958qxEjEt','FitHeight','FitPage','Module','Origin','476332JAqKOJ','\x0a\x20\x20\x20\x20.'];_0x23f4=function(){return _0x55f0b2;};return _0x23f4();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.25.1",
3
+ "version": "1.0.0-alpha.1",
4
4
  "private": false,
5
5
  "description": "Shared print utilities for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -49,8 +49,8 @@
49
49
  ],
50
50
  "devDependencies": {
51
51
  "typescript": "^6.0.3",
52
- "vitest": "^4.1.6",
53
- "@univerjs-infra/shared": "0.25.1"
52
+ "vitest": "^4.1.9",
53
+ "@univerjs-infra/shared": "1.0.0-alpha.1"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",