@univerjs-pro/print 0.25.0 → 0.25.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 _0x2514b1=_0x193c;function _0x193c(_0x2afc27,_0x3b0fd0){_0x2afc27=_0x2afc27-0xe4;const _0x173886=_0x1738();let _0x193c41=_0x173886[_0x2afc27];return _0x193c41;}(function(_0x25adb8,_0x41995f){const _0x3fb042=_0x193c,_0x2ba00d=_0x25adb8();while(!![]){try{const _0x304607=parseInt(_0x3fb042(0xf3))/0x1+-parseInt(_0x3fb042(0xfb))/0x2+parseInt(_0x3fb042(0xfe))/0x3*(parseInt(_0x3fb042(0xf9))/0x4)+parseInt(_0x3fb042(0xe6))/0x5*(parseInt(_0x3fb042(0x100))/0x6)+parseInt(_0x3fb042(0xff))/0x7*(-parseInt(_0x3fb042(0xf4))/0x8)+-parseInt(_0x3fb042(0xe9))/0x9*(-parseInt(_0x3fb042(0x102))/0xa)+-parseInt(_0x3fb042(0xfc))/0xb*(parseInt(_0x3fb042(0xed))/0xc);if(_0x304607===_0x41995f)break;else _0x2ba00d['push'](_0x2ba00d['shift']());}catch(_0x4f1d32){_0x2ba00d['push'](_0x2ba00d['shift']());}}}(_0x1738,0x55802),Object[_0x2514b1(0x103)](exports,Symbol[_0x2514b1(0x10e)],{'value':'Module'}));function _0x1738(){const _0x1d9795=['5352VDrxWf','innerHTML','100ncScCX','defineProperty','FitHeight','Custom','px\x20','PrintDirection','End','Start','Middle','PrintAlign','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','toStringTag','PRINT_CONTAINER_CLASS','Normal',',\x20.','className','Narrow','3495JgPpQB','FitPage','Origin','87183PFXEXg','printing-canvas','createPrintStyle','Landscape','21312GKdpVV','Portrait','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.','None','printing-canvas-container','Wide','666794BPNMQu','13968jpZPMg','\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.','FitWidth','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','6416UDWzhH','\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','874564kIaiAk','1397wyYUaR','\x0a\x20\x20\x20\x20.','84IIkctL','1680IFpesZ'];_0x1738=function(){return _0x1d9795;};return _0x1738();}let e=function(_0x4e7fec){const _0x25c91d=_0x2514b1;return _0x4e7fec['Portrait']=_0x25c91d(0xee),_0x4e7fec[_0x25c91d(0xec)]=_0x25c91d(0xec),_0x4e7fec;}({}),t=function(_0x45d96e){const _0x4643d8=_0x2514b1;return _0x45d96e[_0x4643d8(0xe8)]='Origin',_0x45d96e[_0x4643d8(0xf6)]='FitWidth',_0x45d96e[_0x4643d8(0x104)]='FitHeight',_0x45d96e['FitPage']=_0x4643d8(0xe7),_0x45d96e[_0x4643d8(0x105)]=_0x4643d8(0x105),_0x45d96e;}({}),n=function(_0x4579d4){const _0x1151f6=_0x2514b1;return _0x4579d4[_0x1151f6(0x109)]=_0x1151f6(0x109),_0x4579d4['End']=_0x1151f6(0x108),_0x4579d4[_0x1151f6(0x10a)]=_0x1151f6(0x10a),_0x4579d4;}({}),r=function(_0x2a3d22){const _0x1c8999=_0x2514b1;return _0x2a3d22[_0x1c8999(0x110)]=_0x1c8999(0x110),_0x2a3d22[_0x1c8999(0xe5)]='Narrow',_0x2a3d22[_0x1c8999(0xf2)]=_0x1c8999(0xf2),_0x2a3d22['None']=_0x1c8999(0xf0),_0x2a3d22['Custom']='Custom',_0x2a3d22;}({});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=_0x2514b1(0xf1),o=_0x2514b1(0xea);function s(_0x48a841,_0x23c8ef,_0xf3174d){const _0x36eaab=_0x2514b1;let _0x46d844=_0xf3174d===_0x36eaab(0xee)?_0x48a841:_0x23c8ef,_0xa6e799=_0xf3174d===_0x36eaab(0xee)?_0x23c8ef:_0x48a841,_0x14a513=_0x36eaab(0xfd)+o+_0x36eaab(0xfa)+_0x46d844+_0x36eaab(0x106)+_0xa6e799+_0x36eaab(0xef)+a+_0x36eaab(0x111)+a+_0x36eaab(0xf5)+o+_0x36eaab(0x10d)+_0xa6e799+_0x36eaab(0xf8)+_0x46d844+_0x36eaab(0x10c),_0x352a69=document['createElement']('style');return _0x352a69[_0x36eaab(0x101)]=_0x14a513,_0x352a69[_0x36eaab(0xe4)]='offline-printing-css',_0x352a69;}exports['PRINT_CANVAS_CLASS']=o,exports[_0x2514b1(0x10f)]=a,exports[_0x2514b1(0xf7)]=i,exports[_0x2514b1(0x10b)]=n,exports[_0x2514b1(0x107)]=e,exports['PrintPaperMargin']=r,exports['PrintScale']=t,exports[_0x2514b1(0xeb)]=s;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x10db(){const _0x1c73a1=['56xqbapp','End','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.','12QjrTSq','Origin','421055oGqZey','FitHeight','Normal','640287hBnUrB','printing-canvas',',\x20.','Narrow','6VmFRIP','FitWidth','printing-canvas-container','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','1428808dXEeYr','\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','1207877TPAOqi','\x0a\x20\x20\x20\x20.','Custom','innerHTML','FitPage','8237698aeFoTZ','Start','px\x20','None','50UKKWSy','543939lqaRIk','730175AEomFO','offline-printing-css','\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.'];_0x10db=function(){return _0x1c73a1;};return _0x10db();}const _0x184ee6=_0x158b;(function(_0x3345d7,_0x27e182){const _0x1afae3=_0x158b,_0x38a862=_0x3345d7();while(!![]){try{const _0x3fdd46=-parseInt(_0x1afae3(0x9c))/0x1+parseInt(_0x1afae3(0x8e))/0x2+-parseInt(_0x1afae3(0x9b))/0x3+parseInt(_0x1afae3(0x7f))/0x4*(-parseInt(_0x1afae3(0x81))/0x5)+parseInt(_0x1afae3(0x88))/0x6*(parseInt(_0x1afae3(0x96))/0x7)+-parseInt(_0x1afae3(0x9f))/0x8*(-parseInt(_0x1afae3(0x84))/0x9)+parseInt(_0x1afae3(0x9a))/0xa*(-parseInt(_0x1afae3(0x91))/0xb);if(_0x3fdd46===_0x27e182)break;else _0x38a862['push'](_0x38a862['shift']());}catch(_0x518d75){_0x38a862['push'](_0x38a862['shift']());}}}(_0x10db,0xa50df));let e=function(_0x2622c5){const _0x8aea98=_0x158b;return _0x2622c5[_0x8aea98(0x90)]='Portrait',_0x2622c5['Landscape']=_0x8aea98(0x8d),_0x2622c5;}({}),t=function(_0x3f8301){const _0x21d2a1=_0x158b;return _0x3f8301['Origin']=_0x21d2a1(0x80),_0x3f8301[_0x21d2a1(0x89)]=_0x21d2a1(0x89),_0x3f8301[_0x21d2a1(0x82)]=_0x21d2a1(0x82),_0x3f8301[_0x21d2a1(0x95)]='FitPage',_0x3f8301[_0x21d2a1(0x93)]=_0x21d2a1(0x93),_0x3f8301;}({}),n=function(_0xcb39ab){const _0x46296b=_0x158b;return _0xcb39ab[_0x46296b(0x97)]=_0x46296b(0x97),_0xcb39ab['End']=_0x46296b(0x7c),_0xcb39ab[_0x46296b(0x7d)]=_0x46296b(0x7d),_0xcb39ab;}({}),r=function(_0x35b66c){const _0x4e3b0b=_0x158b;return _0x35b66c[_0x4e3b0b(0x83)]=_0x4e3b0b(0x83),_0x35b66c[_0x4e3b0b(0x87)]=_0x4e3b0b(0x87),_0x35b66c['Wide']='Wide',_0x35b66c[_0x4e3b0b(0x99)]='None',_0x35b66c[_0x4e3b0b(0x93)]=_0x4e3b0b(0x93),_0x35b66c;}({});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=_0x184ee6(0x8a),o=_0x184ee6(0x85);function _0x158b(_0x341d04,_0x4e3c5c){_0x341d04=_0x341d04-0x7c;const _0x10db54=_0x10db();let _0x158b53=_0x10db54[_0x341d04];return _0x158b53;}function s(_0x47f819,_0x22a0e0,_0xeccfd0){const _0x2db948=_0x184ee6;let _0x524618=_0xeccfd0===_0x2db948(0x90)?_0x47f819:_0x22a0e0,_0x77a050=_0xeccfd0===_0x2db948(0x90)?_0x22a0e0:_0x47f819,_0x3b9bc9=_0x2db948(0x92)+o+_0x2db948(0x8f)+_0x524618+_0x2db948(0x98)+_0x77a050+_0x2db948(0x7e)+a+_0x2db948(0x86)+a+_0x2db948(0x9e)+o+'\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'+_0x77a050+_0x2db948(0x8c)+_0x524618+'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}',_0x5707d6=document['createElement']('style');return _0x5707d6[_0x2db948(0x94)]=_0x3b9bc9,_0x5707d6[_0x2db948(0x8b)]=_0x2db948(0x9d),_0x5707d6;}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 _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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x10db(){const _0x1c73a1=['56xqbapp','End','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.','12QjrTSq','Origin','421055oGqZey','FitHeight','Normal','640287hBnUrB','printing-canvas',',\x20.','Narrow','6VmFRIP','FitWidth','printing-canvas-container','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','1428808dXEeYr','\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','1207877TPAOqi','\x0a\x20\x20\x20\x20.','Custom','innerHTML','FitPage','8237698aeFoTZ','Start','px\x20','None','50UKKWSy','543939lqaRIk','730175AEomFO','offline-printing-css','\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.'];_0x10db=function(){return _0x1c73a1;};return _0x10db();}const _0x184ee6=_0x158b;(function(_0x3345d7,_0x27e182){const _0x1afae3=_0x158b,_0x38a862=_0x3345d7();while(!![]){try{const _0x3fdd46=-parseInt(_0x1afae3(0x9c))/0x1+parseInt(_0x1afae3(0x8e))/0x2+-parseInt(_0x1afae3(0x9b))/0x3+parseInt(_0x1afae3(0x7f))/0x4*(-parseInt(_0x1afae3(0x81))/0x5)+parseInt(_0x1afae3(0x88))/0x6*(parseInt(_0x1afae3(0x96))/0x7)+-parseInt(_0x1afae3(0x9f))/0x8*(-parseInt(_0x1afae3(0x84))/0x9)+parseInt(_0x1afae3(0x9a))/0xa*(-parseInt(_0x1afae3(0x91))/0xb);if(_0x3fdd46===_0x27e182)break;else _0x38a862['push'](_0x38a862['shift']());}catch(_0x518d75){_0x38a862['push'](_0x38a862['shift']());}}}(_0x10db,0xa50df));let e=function(_0x2622c5){const _0x8aea98=_0x158b;return _0x2622c5[_0x8aea98(0x90)]='Portrait',_0x2622c5['Landscape']=_0x8aea98(0x8d),_0x2622c5;}({}),t=function(_0x3f8301){const _0x21d2a1=_0x158b;return _0x3f8301['Origin']=_0x21d2a1(0x80),_0x3f8301[_0x21d2a1(0x89)]=_0x21d2a1(0x89),_0x3f8301[_0x21d2a1(0x82)]=_0x21d2a1(0x82),_0x3f8301[_0x21d2a1(0x95)]='FitPage',_0x3f8301[_0x21d2a1(0x93)]=_0x21d2a1(0x93),_0x3f8301;}({}),n=function(_0xcb39ab){const _0x46296b=_0x158b;return _0xcb39ab[_0x46296b(0x97)]=_0x46296b(0x97),_0xcb39ab['End']=_0x46296b(0x7c),_0xcb39ab[_0x46296b(0x7d)]=_0x46296b(0x7d),_0xcb39ab;}({}),r=function(_0x35b66c){const _0x4e3b0b=_0x158b;return _0x35b66c[_0x4e3b0b(0x83)]=_0x4e3b0b(0x83),_0x35b66c[_0x4e3b0b(0x87)]=_0x4e3b0b(0x87),_0x35b66c['Wide']='Wide',_0x35b66c[_0x4e3b0b(0x99)]='None',_0x35b66c[_0x4e3b0b(0x93)]=_0x4e3b0b(0x93),_0x35b66c;}({});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=_0x184ee6(0x8a),o=_0x184ee6(0x85);function _0x158b(_0x341d04,_0x4e3c5c){_0x341d04=_0x341d04-0x7c;const _0x10db54=_0x10db();let _0x158b53=_0x10db54[_0x341d04];return _0x158b53;}function s(_0x47f819,_0x22a0e0,_0xeccfd0){const _0x2db948=_0x184ee6;let _0x524618=_0xeccfd0===_0x2db948(0x90)?_0x47f819:_0x22a0e0,_0x77a050=_0xeccfd0===_0x2db948(0x90)?_0x22a0e0:_0x47f819,_0x3b9bc9=_0x2db948(0x92)+o+_0x2db948(0x8f)+_0x524618+_0x2db948(0x98)+_0x77a050+_0x2db948(0x7e)+a+_0x2db948(0x86)+a+_0x2db948(0x9e)+o+'\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'+_0x77a050+_0x2db948(0x8c)+_0x524618+'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}',_0x5707d6=document['createElement']('style');return _0x5707d6[_0x2db948(0x94)]=_0x3b9bc9,_0x5707d6[_0x2db948(0x8b)]=_0x2db948(0x9d),_0x5707d6;}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 _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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x39ab(_0x3eaf6e,_0x1ae53d){_0x3eaf6e=_0x3eaf6e-0x1e1;const _0x3c9bb5=_0x3c9b();let _0x39abc7=_0x3c9bb5[_0x3eaf6e];return _0x39abc7;}(function(_0x4fa7fc,_0x205d77){const _0x10a206=_0x39ab,_0x429f11=_0x4fa7fc();while(!![]){try{const _0x41da08=parseInt(_0x10a206(0x1ff))/0x1+parseInt(_0x10a206(0x1ef))/0x2+parseInt(_0x10a206(0x1ed))/0x3*(parseInt(_0x10a206(0x203))/0x4)+-parseInt(_0x10a206(0x1ee))/0x5*(-parseInt(_0x10a206(0x1ec))/0x6)+parseInt(_0x10a206(0x1fb))/0x7+-parseInt(_0x10a206(0x202))/0x8*(parseInt(_0x10a206(0x1f9))/0x9)+-parseInt(_0x10a206(0x1e9))/0xa;if(_0x41da08===_0x205d77)break;else _0x429f11['push'](_0x429f11['shift']());}catch(_0x4a89b3){_0x429f11['push'](_0x429f11['shift']());}}}(_0x3c9b,0x6131a),function(_0x13f97d,_0x24896f){const _0xa26a85=_0x39ab;typeof exports=='object'&&typeof module<'u'?_0x24896f(exports):typeof define==_0xa26a85(0x1f4)&&define[_0xa26a85(0x1e4)]?define([_0xa26a85(0x1e2)],_0x24896f):(_0x13f97d=typeof globalThis<'u'?globalThis:_0x13f97d||self,_0x24896f(_0x13f97d['UniverProPrint']={}));}(this,function(_0x3180bb){const _0x4ffb02=_0x39ab;Object[_0x4ffb02(0x208)](_0x3180bb,Symbol[_0x4ffb02(0x1e5)],{'value':_0x4ffb02(0x201)});let _0x2d8e84=function(_0x58487c){const _0x3b541f=_0x4ffb02;return _0x58487c[_0x3b541f(0x1f0)]='Portrait',_0x58487c[_0x3b541f(0x1f1)]='Landscape',_0x58487c;}({}),_0x31071e=function(_0x5cd0e6){const _0x472baa=_0x4ffb02;return _0x5cd0e6[_0x472baa(0x1e7)]=_0x472baa(0x1e7),_0x5cd0e6[_0x472baa(0x1eb)]=_0x472baa(0x1eb),_0x5cd0e6[_0x472baa(0x1ea)]=_0x472baa(0x1ea),_0x5cd0e6['FitPage']='FitPage',_0x5cd0e6[_0x472baa(0x207)]=_0x472baa(0x207),_0x5cd0e6;}({}),_0x1e7c2d=function(_0x504d40){const _0x5a53a9=_0x4ffb02;return _0x504d40['Start']=_0x5a53a9(0x1e6),_0x504d40[_0x5a53a9(0x1e1)]='End',_0x504d40[_0x5a53a9(0x200)]=_0x5a53a9(0x200),_0x504d40;}({}),_0x34a74e=function(_0xbccc2c){const _0x42aa60=_0x4ffb02;return _0xbccc2c[_0x42aa60(0x1e3)]=_0x42aa60(0x1e3),_0xbccc2c[_0x42aa60(0x1f6)]=_0x42aa60(0x1f6),_0xbccc2c['Wide']='Wide',_0xbccc2c[_0x42aa60(0x20e)]=_0x42aa60(0x20e),_0xbccc2c[_0x42aa60(0x207)]=_0x42aa60(0x207),_0xbccc2c;}({}),_0x1d9579={'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}},_0x4cbeb6=_0x4ffb02(0x205),_0x381819=_0x4ffb02(0x1f2);function _0x3bb565(_0x31390b,_0x48e849,_0x5e32f4){const _0x6e33b7=_0x4ffb02;let _0x5ad2d8=_0x5e32f4===_0x6e33b7(0x1f0)?_0x31390b:_0x48e849,_0x3d0403=_0x5e32f4===_0x6e33b7(0x1f0)?_0x48e849:_0x31390b,_0x387e3f=_0x6e33b7(0x1f5)+_0x381819+_0x6e33b7(0x20b)+_0x5ad2d8+_0x6e33b7(0x1f7)+_0x3d0403+'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.'+_0x4cbeb6+_0x6e33b7(0x209)+_0x4cbeb6+'\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.'+_0x381819+_0x6e33b7(0x204)+_0x3d0403+_0x6e33b7(0x1fd)+_0x5ad2d8+_0x6e33b7(0x1e8),_0x7afa4e=document[_0x6e33b7(0x20d)]('style');return _0x7afa4e['innerHTML']=_0x387e3f,_0x7afa4e[_0x6e33b7(0x1fc)]=_0x6e33b7(0x20c),_0x7afa4e;}_0x3180bb['PRINT_CANVAS_CLASS']=_0x381819,_0x3180bb[_0x4ffb02(0x1fa)]=_0x4cbeb6,_0x3180bb[_0x4ffb02(0x206)]=_0x1d9579,_0x3180bb[_0x4ffb02(0x1f8)]=_0x1e7c2d,_0x3180bb[_0x4ffb02(0x1fe)]=_0x2d8e84,_0x3180bb[_0x4ffb02(0x1f3)]=_0x34a74e,_0x3180bb[_0x4ffb02(0x20a)]=_0x31071e,_0x3180bb['createPrintStyle']=_0x3bb565;}));function _0x3c9b(){const _0x5c0430=['\x0a\x20\x20\x20\x20.','Narrow','px\x20','PrintAlign','18jpMOaL','PRINT_CONTAINER_CLASS','4500461jSGdgn','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','753523MVbGmG','Middle','Module','551344eKhhae','8UYuMFH','\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','printing-canvas-container','PaperMarginMap','Custom','defineProperty',',\x20.','PrintScale','\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','offline-printing-css','createElement','None','End','exports','Normal','amd','toStringTag','Start','Origin','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}','17522150EKqKJS','FitHeight','FitWidth','150ogrEVe','386166XtPfiz','40695bjWMZJ','861584AoaiBS','Portrait','Landscape','printing-canvas','PrintPaperMargin','function'];_0x3c9b=function(){return _0x5c0430;};return _0x3c9b();}
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;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "private": false,
5
5
  "description": "Shared print utilities for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "typescript": "^6.0.3",
52
52
  "vitest": "^4.1.6",
53
- "@univerjs-infra/shared": "0.25.0"
53
+ "@univerjs-infra/shared": "0.25.1"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",