@univerjs-pro/print 1.0.0-alpha.8 → 1.0.0-beta.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 _0x46728d=_0xd747;function _0x2a03(){const _0x1aea97=['PaperMarginMap','Wide','innerHTML','createElement','FitWidth','14729mpzWvi','defineProperty','FitPage','offline-printing-css','5892NVNsaO','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.','7829770UafZIU','FitHeight','Normal','Narrow','7KutYuS','59560LlbsFi','5464OrxQSK','145215SvmRMC',',\x20.','Module','style','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}','className','End','4355688qvjWPY','PrintDirection','PrintPaperMargin','Origin','Custom','3936115CfOefw','createPrintStyle','Middle','48zmTqRg','Landscape','10xzuowM','Start','printing-canvas-container','\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','px\x20','PRINT_CANVAS_CLASS','toStringTag','Portrait','None','\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','8361UwUhFi','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x2a03=function(){return _0x1aea97;};return _0x2a03();}(function(_0x4e059b,_0x15fd6c){const _0x5762ab=_0xd747,_0x50f2c9=_0x4e059b();while(!![]){try{const _0x32e469=-parseInt(_0x5762ab(0x102))/0x1*(-parseInt(_0x5762ab(0x113))/0x2)+parseInt(_0x5762ab(0x111))/0x3*(parseInt(_0x5762ab(0x100))/0x4)+parseInt(_0x5762ab(0x10e))/0x5+-parseInt(_0x5762ab(0x109))/0x6*(-parseInt(_0x5762ab(0xff))/0x7)+parseInt(_0x5762ab(0x101))/0x8*(-parseInt(_0x5762ab(0x11d))/0x9)+-parseInt(_0x5762ab(0xfb))/0xa+parseInt(_0x5762ab(0x124))/0xb*(-parseInt(_0x5762ab(0x128))/0xc);if(_0x32e469===_0x15fd6c)break;else _0x50f2c9['push'](_0x50f2c9['shift']());}catch(_0x33345e){_0x50f2c9['push'](_0x50f2c9['shift']());}}}(_0x2a03,0x62479),Object[_0x46728d(0x125)](exports,Symbol[_0x46728d(0x119)],{'value':_0x46728d(0x104)}));let e=function(_0xf9f650){const _0x5971ea=_0x46728d;return _0xf9f650[_0x5971ea(0x11a)]='Portrait',_0xf9f650[_0x5971ea(0x112)]=_0x5971ea(0x112),_0xf9f650;}({}),t=function(_0x16fdd5){const _0x2c375b=_0x46728d;return _0x16fdd5[_0x2c375b(0x10c)]=_0x2c375b(0x10c),_0x16fdd5[_0x2c375b(0x123)]=_0x2c375b(0x123),_0x16fdd5['FitHeight']=_0x2c375b(0xfc),_0x16fdd5['FitPage']=_0x2c375b(0x126),_0x16fdd5['Custom']='Custom',_0x16fdd5;}({}),n=function(_0x217a8a){const _0x2484be=_0x46728d;return _0x217a8a[_0x2484be(0x114)]=_0x2484be(0x114),_0x217a8a[_0x2484be(0x108)]=_0x2484be(0x108),_0x217a8a[_0x2484be(0x110)]=_0x2484be(0x110),_0x217a8a;}({}),r=function(_0x542674){const _0x10e652=_0x46728d;return _0x542674[_0x10e652(0xfd)]=_0x10e652(0xfd),_0x542674[_0x10e652(0xfe)]=_0x10e652(0xfe),_0x542674[_0x10e652(0x120)]=_0x10e652(0x120),_0x542674[_0x10e652(0x11b)]=_0x10e652(0x11b),_0x542674['Custom']=_0x10e652(0x10d),_0x542674;}({});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=_0x46728d(0x115),o='printing-canvas';function _0xd747(_0x4dd2ae,_0x555e56){_0x4dd2ae=_0x4dd2ae-0xfb;const _0x2a0306=_0x2a03();let _0xd7479c=_0x2a0306[_0x4dd2ae];return _0xd7479c;}function s(_0x4891d3,_0xe160ff,_0x44bf1a){const _0x2b742e=_0x46728d;let _0x569721=_0x44bf1a===_0x2b742e(0x11a)?_0x4891d3:_0xe160ff,_0x1c29d4=_0x44bf1a===_0x2b742e(0x11a)?_0xe160ff:_0x4891d3,_0x283104='\x0a\x20\x20\x20\x20.'+o+_0x2b742e(0x11c)+_0x569721+_0x2b742e(0x117)+_0x1c29d4+_0x2b742e(0x129)+a+_0x2b742e(0x103)+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+_0x2b742e(0x116)+_0x1c29d4+_0x2b742e(0x11e)+_0x569721+_0x2b742e(0x106),_0x57ee5f=document[_0x2b742e(0x122)](_0x2b742e(0x105));return _0x57ee5f[_0x2b742e(0x121)]=_0x283104,_0x57ee5f[_0x2b742e(0x107)]=_0x2b742e(0x127),_0x57ee5f;}exports[_0x46728d(0x118)]=o,exports['PRINT_CONTAINER_CLASS']=a,exports[_0x46728d(0x11f)]=i,exports['PrintAlign']=n,exports[_0x46728d(0x10a)]=e,exports[_0x46728d(0x10b)]=r,exports['PrintScale']=t,exports[_0x46728d(0x10f)]=s;
1
+ const _0x107fa5=_0x282e;function _0x282e(_0x257340,_0xec5a8e){_0x257340=_0x257340-0x1ad;const _0x13c628=_0x13c6();let _0x282e76=_0x13c628[_0x257340];return _0x282e76;}(function(_0x1937b4,_0x598620){const _0x59e48b=_0x282e,_0x218c1e=_0x1937b4();while(!![]){try{const _0x14626a=-parseInt(_0x59e48b(0x1ce))/0x1+parseInt(_0x59e48b(0x1ad))/0x2+parseInt(_0x59e48b(0x1c1))/0x3+-parseInt(_0x59e48b(0x1cf))/0x4*(parseInt(_0x59e48b(0x1ae))/0x5)+-parseInt(_0x59e48b(0x1bf))/0x6+-parseInt(_0x59e48b(0x1b9))/0x7+parseInt(_0x59e48b(0x1bc))/0x8;if(_0x14626a===_0x598620)break;else _0x218c1e['push'](_0x218c1e['shift']());}catch(_0x1985c5){_0x218c1e['push'](_0x218c1e['shift']());}}}(_0x13c6,0xaf05c),Object[_0x107fa5(0x1b2)](exports,Symbol[_0x107fa5(0x1bb)],{'value':_0x107fa5(0x1c5)}));let e=function(_0x2ccfdb){const _0x1de07e=_0x107fa5;return _0x2ccfdb[_0x1de07e(0x1ca)]='Portrait',_0x2ccfdb['Landscape']='Landscape',_0x2ccfdb;}({}),t=function(_0x4ae503){const _0x4692aa=_0x107fa5;return _0x4ae503[_0x4692aa(0x1b6)]=_0x4692aa(0x1b6),_0x4ae503[_0x4692aa(0x1cc)]='FitWidth',_0x4ae503['FitHeight']=_0x4692aa(0x1b1),_0x4ae503[_0x4692aa(0x1b7)]=_0x4692aa(0x1b7),_0x4ae503['Custom']=_0x4692aa(0x1c8),_0x4ae503;}({}),n=function(_0x1c0d51){const _0x2a75ac=_0x107fa5;return _0x1c0d51[_0x2a75ac(0x1be)]='Start',_0x1c0d51[_0x2a75ac(0x1b8)]=_0x2a75ac(0x1b8),_0x1c0d51[_0x2a75ac(0x1d1)]=_0x2a75ac(0x1d1),_0x1c0d51;}({}),r=function(_0x65cc25){const _0x4072c5=_0x107fa5;return _0x65cc25[_0x4072c5(0x1d2)]=_0x4072c5(0x1d2),_0x65cc25[_0x4072c5(0x1b3)]=_0x4072c5(0x1b3),_0x65cc25[_0x4072c5(0x1d0)]='Wide',_0x65cc25['None']=_0x4072c5(0x1c9),_0x65cc25[_0x4072c5(0x1c8)]=_0x4072c5(0x1c8),_0x65cc25;}({});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=_0x107fa5(0x1c4),o=_0x107fa5(0x1c7);function s(_0x2601a9,_0x491560,_0x4ad045){const _0x400134=_0x107fa5;let _0x147316=_0x4ad045==='Portrait'?_0x2601a9:_0x491560,_0x467b5f=_0x4ad045==='Portrait'?_0x491560:_0x2601a9,_0x44d058='\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'+_0x147316+_0x400134(0x1c3)+_0x467b5f+_0x400134(0x1c0)+a+',\x20.'+a+_0x400134(0x1ba)+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'+_0x467b5f+_0x400134(0x1b0)+_0x147316+_0x400134(0x1c2),_0x61c6ff=document['createElement']('style');return _0x61c6ff[_0x400134(0x1bd)]=_0x44d058,_0x61c6ff[_0x400134(0x1b4)]=_0x400134(0x1c6),_0x61c6ff;}function _0x13c6(){const _0x510ffa=['\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.','toStringTag','19272712RFvBPt','innerHTML','Start','2156304xTiYvA','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.','1697571QJMYRs','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}','px\x20','printing-canvas-container','Module','offline-printing-css','printing-canvas','Custom','None','Portrait','createPrintStyle','FitWidth','PRINT_CANVAS_CLASS','1300644NvbgoI','12fFosgn','Wide','Middle','Normal','PRINT_CONTAINER_CLASS','PaperMarginMap','2354880oIDYRw','1765745fRRtQf','PrintScale','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','defineProperty','Narrow','className','PrintDirection','Origin','FitPage','End','5012133Bpduuw'];_0x13c6=function(){return _0x510ffa;};return _0x13c6();}exports[_0x107fa5(0x1cd)]=o,exports[_0x107fa5(0x1d3)]=a,exports[_0x107fa5(0x1d4)]=i,exports['PrintAlign']=n,exports[_0x107fa5(0x1b5)]=e,exports['PrintPaperMargin']=r,exports[_0x107fa5(0x1af)]=t,exports[_0x107fa5(0x1cb)]=s;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x40e3(_0x3a36d6,_0x4814ed){_0x3a36d6=_0x3a36d6-0x179;const _0x4f314a=_0x4f31();let _0x40e347=_0x4f314a[_0x3a36d6];return _0x40e347;}(function(_0x441b39,_0x393491){const _0x24c1ae=_0x40e3,_0x11161d=_0x441b39();while(!![]){try{const _0x2fa2a5=parseInt(_0x24c1ae(0x18d))/0x1*(parseInt(_0x24c1ae(0x179))/0x2)+-parseInt(_0x24c1ae(0x18e))/0x3+parseInt(_0x24c1ae(0x191))/0x4*(parseInt(_0x24c1ae(0x19b))/0x5)+-parseInt(_0x24c1ae(0x17f))/0x6+parseInt(_0x24c1ae(0x17b))/0x7+parseInt(_0x24c1ae(0x183))/0x8*(-parseInt(_0x24c1ae(0x18c))/0x9)+parseInt(_0x24c1ae(0x187))/0xa;if(_0x2fa2a5===_0x393491)break;else _0x11161d['push'](_0x11161d['shift']());}catch(_0x275953){_0x11161d['push'](_0x11161d['shift']());}}}(_0x4f31,0x7d7b7));let e=function(_0x309678){const _0x513298=_0x40e3;return _0x309678[_0x513298(0x17e)]=_0x513298(0x17e),_0x309678[_0x513298(0x197)]=_0x513298(0x197),_0x309678;}({}),t=function(_0x53669c){const _0x24c9b5=_0x40e3;return _0x53669c[_0x24c9b5(0x195)]='Origin',_0x53669c[_0x24c9b5(0x198)]='FitWidth',_0x53669c[_0x24c9b5(0x17c)]=_0x24c9b5(0x17c),_0x53669c['FitPage']=_0x24c9b5(0x192),_0x53669c['Custom']='Custom',_0x53669c;}({}),n=function(_0x489f90){const _0x39874a=_0x40e3;return _0x489f90[_0x39874a(0x19a)]=_0x39874a(0x19a),_0x489f90[_0x39874a(0x19c)]=_0x39874a(0x19c),_0x489f90['Middle']=_0x39874a(0x188),_0x489f90;}({}),r=function(_0x423d5e){const _0x1d0097=_0x40e3;return _0x423d5e[_0x1d0097(0x196)]=_0x1d0097(0x196),_0x423d5e[_0x1d0097(0x182)]='Narrow',_0x423d5e[_0x1d0097(0x185)]=_0x1d0097(0x185),_0x423d5e[_0x1d0097(0x186)]=_0x1d0097(0x186),_0x423d5e[_0x1d0097(0x194)]=_0x1d0097(0x194),_0x423d5e;}({});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='printing-canvas';function _0x4f31(){const _0x326785=['style','\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.','36732vzBeDp','FitPage','\x0a\x20\x20\x20\x20.','Custom','Origin','Normal','Landscape','FitWidth','className','Start','150sOUmtA','End','innerHTML','58fUjRiW','\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','5316738LeNygF','FitHeight','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.','Portrait','6165642ZcvQOX','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','3187320uXQSXk','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}','Wide','None','5478080kUGngE','Middle',',\x20.','createElement','offline-printing-css','9difUcU','24346uLatBx','1046607bCiqTr'];_0x4f31=function(){return _0x326785;};return _0x4f31();}function s(_0x5e1d1d,_0x7f639e,_0xd1ad4e){const _0x40470d=_0x40e3;let _0x4b9509=_0xd1ad4e===_0x40470d(0x17e)?_0x5e1d1d:_0x7f639e,_0x2275e8=_0xd1ad4e===_0x40470d(0x17e)?_0x7f639e:_0x5e1d1d,_0x6a0387=_0x40470d(0x193)+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'+_0x4b9509+_0x40470d(0x180)+_0x2275e8+_0x40470d(0x17d)+a+_0x40470d(0x189)+a+_0x40470d(0x190)+o+_0x40470d(0x17a)+_0x2275e8+_0x40470d(0x181)+_0x4b9509+_0x40470d(0x184),_0x5debdb=document[_0x40470d(0x18a)](_0x40470d(0x18f));return _0x5debdb[_0x40470d(0x19d)]=_0x6a0387,_0x5debdb[_0x40470d(0x199)]=_0x40470d(0x18b),_0x5debdb;}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 _0x5dccaf=_0x1e9b;(function(_0x2ae594,_0x4b77dd){const _0x6807ba=_0x1e9b,_0x1d2e9e=_0x2ae594();while(!![]){try{const _0x21da69=-parseInt(_0x6807ba(0x1b6))/0x1+parseInt(_0x6807ba(0x1af))/0x2+parseInt(_0x6807ba(0x1a3))/0x3+-parseInt(_0x6807ba(0x197))/0x4*(-parseInt(_0x6807ba(0x1ad))/0x5)+-parseInt(_0x6807ba(0x1a0))/0x6+parseInt(_0x6807ba(0x1b3))/0x7*(-parseInt(_0x6807ba(0x1b1))/0x8)+parseInt(_0x6807ba(0x1a6))/0x9;if(_0x21da69===_0x4b77dd)break;else _0x1d2e9e['push'](_0x1d2e9e['shift']());}catch(_0x57648b){_0x1d2e9e['push'](_0x1d2e9e['shift']());}}}(_0x2298,0xd4dde));let e=function(_0x517147){const _0xfcf85a=_0x1e9b;return _0x517147[_0xfcf85a(0x1ae)]='Portrait',_0x517147['Landscape']=_0xfcf85a(0x1b5),_0x517147;}({}),t=function(_0x5bd73e){const _0x1cff6d=_0x1e9b;return _0x5bd73e[_0x1cff6d(0x1ab)]=_0x1cff6d(0x1ab),_0x5bd73e['FitWidth']='FitWidth',_0x5bd73e[_0x1cff6d(0x1ac)]='FitHeight',_0x5bd73e[_0x1cff6d(0x1a7)]=_0x1cff6d(0x1a7),_0x5bd73e[_0x1cff6d(0x1b4)]=_0x1cff6d(0x1b4),_0x5bd73e;}({}),n=function(_0x1ff061){const _0x1dd256=_0x1e9b;return _0x1ff061['Start']=_0x1dd256(0x1a9),_0x1ff061['End']=_0x1dd256(0x1a5),_0x1ff061[_0x1dd256(0x1a4)]='Middle',_0x1ff061;}({}),r=function(_0x55d253){const _0x4efea1=_0x1e9b;return _0x55d253[_0x4efea1(0x19c)]='Normal',_0x55d253[_0x4efea1(0x1b0)]=_0x4efea1(0x1b0),_0x55d253[_0x4efea1(0x19f)]=_0x4efea1(0x19f),_0x55d253[_0x4efea1(0x1b2)]='None',_0x55d253['Custom']=_0x4efea1(0x1b4),_0x55d253;}({});function _0x1e9b(_0x553ee5,_0x3f8c2b){_0x553ee5=_0x553ee5-0x197;const _0x229873=_0x2298();let _0x1e9bce=_0x229873[_0x553ee5];return _0x1e9bce;}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=_0x5dccaf(0x19b),o='printing-canvas';function s(_0x2b39c8,_0x55b506,_0xd1e04f){const _0x31d164=_0x5dccaf;let _0x5a0335=_0xd1e04f==='Portrait'?_0x2b39c8:_0x55b506,_0x54e60f=_0xd1e04f==='Portrait'?_0x55b506:_0x2b39c8,_0x44b5e3='\x0a\x20\x20\x20\x20.'+o+_0x31d164(0x1a8)+_0x5a0335+'px\x20'+_0x54e60f+_0x31d164(0x198)+a+_0x31d164(0x1aa)+a+_0x31d164(0x19d)+o+_0x31d164(0x199)+_0x54e60f+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5a0335+'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}',_0x246db4=document[_0x31d164(0x19e)](_0x31d164(0x1a1));return _0x246db4[_0x31d164(0x1a2)]=_0x44b5e3,_0x246db4['className']=_0x31d164(0x19a),_0x246db4;}function _0x2298(){const _0x2c14aa=['innerHTML','3122655uQceqP','Middle','End','5587632OPvXMS','FitPage','\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','Start',',\x20.','Origin','FitHeight','20itCfuq','Portrait','998332hoioZI','Narrow','42544qnwVkR','None','7VMuDrP','Custom','Landscape','1276945mdUQYR','557948blwZty','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.','\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','offline-printing-css','printing-canvas-container','Normal','\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.','createElement','Wide','3388092ZivAuO','style'];_0x2298=function(){return _0x2c14aa;};return _0x2298();}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 _0x40e3(_0x3a36d6,_0x4814ed){_0x3a36d6=_0x3a36d6-0x179;const _0x4f314a=_0x4f31();let _0x40e347=_0x4f314a[_0x3a36d6];return _0x40e347;}(function(_0x441b39,_0x393491){const _0x24c1ae=_0x40e3,_0x11161d=_0x441b39();while(!![]){try{const _0x2fa2a5=parseInt(_0x24c1ae(0x18d))/0x1*(parseInt(_0x24c1ae(0x179))/0x2)+-parseInt(_0x24c1ae(0x18e))/0x3+parseInt(_0x24c1ae(0x191))/0x4*(parseInt(_0x24c1ae(0x19b))/0x5)+-parseInt(_0x24c1ae(0x17f))/0x6+parseInt(_0x24c1ae(0x17b))/0x7+parseInt(_0x24c1ae(0x183))/0x8*(-parseInt(_0x24c1ae(0x18c))/0x9)+parseInt(_0x24c1ae(0x187))/0xa;if(_0x2fa2a5===_0x393491)break;else _0x11161d['push'](_0x11161d['shift']());}catch(_0x275953){_0x11161d['push'](_0x11161d['shift']());}}}(_0x4f31,0x7d7b7));let e=function(_0x309678){const _0x513298=_0x40e3;return _0x309678[_0x513298(0x17e)]=_0x513298(0x17e),_0x309678[_0x513298(0x197)]=_0x513298(0x197),_0x309678;}({}),t=function(_0x53669c){const _0x24c9b5=_0x40e3;return _0x53669c[_0x24c9b5(0x195)]='Origin',_0x53669c[_0x24c9b5(0x198)]='FitWidth',_0x53669c[_0x24c9b5(0x17c)]=_0x24c9b5(0x17c),_0x53669c['FitPage']=_0x24c9b5(0x192),_0x53669c['Custom']='Custom',_0x53669c;}({}),n=function(_0x489f90){const _0x39874a=_0x40e3;return _0x489f90[_0x39874a(0x19a)]=_0x39874a(0x19a),_0x489f90[_0x39874a(0x19c)]=_0x39874a(0x19c),_0x489f90['Middle']=_0x39874a(0x188),_0x489f90;}({}),r=function(_0x423d5e){const _0x1d0097=_0x40e3;return _0x423d5e[_0x1d0097(0x196)]=_0x1d0097(0x196),_0x423d5e[_0x1d0097(0x182)]='Narrow',_0x423d5e[_0x1d0097(0x185)]=_0x1d0097(0x185),_0x423d5e[_0x1d0097(0x186)]=_0x1d0097(0x186),_0x423d5e[_0x1d0097(0x194)]=_0x1d0097(0x194),_0x423d5e;}({});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='printing-canvas';function _0x4f31(){const _0x326785=['style','\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.','36732vzBeDp','FitPage','\x0a\x20\x20\x20\x20.','Custom','Origin','Normal','Landscape','FitWidth','className','Start','150sOUmtA','End','innerHTML','58fUjRiW','\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','5316738LeNygF','FitHeight','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.','Portrait','6165642ZcvQOX','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','3187320uXQSXk','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}','Wide','None','5478080kUGngE','Middle',',\x20.','createElement','offline-printing-css','9difUcU','24346uLatBx','1046607bCiqTr'];_0x4f31=function(){return _0x326785;};return _0x4f31();}function s(_0x5e1d1d,_0x7f639e,_0xd1ad4e){const _0x40470d=_0x40e3;let _0x4b9509=_0xd1ad4e===_0x40470d(0x17e)?_0x5e1d1d:_0x7f639e,_0x2275e8=_0xd1ad4e===_0x40470d(0x17e)?_0x7f639e:_0x5e1d1d,_0x6a0387=_0x40470d(0x193)+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'+_0x4b9509+_0x40470d(0x180)+_0x2275e8+_0x40470d(0x17d)+a+_0x40470d(0x189)+a+_0x40470d(0x190)+o+_0x40470d(0x17a)+_0x2275e8+_0x40470d(0x181)+_0x4b9509+_0x40470d(0x184),_0x5debdb=document[_0x40470d(0x18a)](_0x40470d(0x18f));return _0x5debdb[_0x40470d(0x19d)]=_0x6a0387,_0x5debdb[_0x40470d(0x199)]=_0x40470d(0x18b),_0x5debdb;}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 _0x5dccaf=_0x1e9b;(function(_0x2ae594,_0x4b77dd){const _0x6807ba=_0x1e9b,_0x1d2e9e=_0x2ae594();while(!![]){try{const _0x21da69=-parseInt(_0x6807ba(0x1b6))/0x1+parseInt(_0x6807ba(0x1af))/0x2+parseInt(_0x6807ba(0x1a3))/0x3+-parseInt(_0x6807ba(0x197))/0x4*(-parseInt(_0x6807ba(0x1ad))/0x5)+-parseInt(_0x6807ba(0x1a0))/0x6+parseInt(_0x6807ba(0x1b3))/0x7*(-parseInt(_0x6807ba(0x1b1))/0x8)+parseInt(_0x6807ba(0x1a6))/0x9;if(_0x21da69===_0x4b77dd)break;else _0x1d2e9e['push'](_0x1d2e9e['shift']());}catch(_0x57648b){_0x1d2e9e['push'](_0x1d2e9e['shift']());}}}(_0x2298,0xd4dde));let e=function(_0x517147){const _0xfcf85a=_0x1e9b;return _0x517147[_0xfcf85a(0x1ae)]='Portrait',_0x517147['Landscape']=_0xfcf85a(0x1b5),_0x517147;}({}),t=function(_0x5bd73e){const _0x1cff6d=_0x1e9b;return _0x5bd73e[_0x1cff6d(0x1ab)]=_0x1cff6d(0x1ab),_0x5bd73e['FitWidth']='FitWidth',_0x5bd73e[_0x1cff6d(0x1ac)]='FitHeight',_0x5bd73e[_0x1cff6d(0x1a7)]=_0x1cff6d(0x1a7),_0x5bd73e[_0x1cff6d(0x1b4)]=_0x1cff6d(0x1b4),_0x5bd73e;}({}),n=function(_0x1ff061){const _0x1dd256=_0x1e9b;return _0x1ff061['Start']=_0x1dd256(0x1a9),_0x1ff061['End']=_0x1dd256(0x1a5),_0x1ff061[_0x1dd256(0x1a4)]='Middle',_0x1ff061;}({}),r=function(_0x55d253){const _0x4efea1=_0x1e9b;return _0x55d253[_0x4efea1(0x19c)]='Normal',_0x55d253[_0x4efea1(0x1b0)]=_0x4efea1(0x1b0),_0x55d253[_0x4efea1(0x19f)]=_0x4efea1(0x19f),_0x55d253[_0x4efea1(0x1b2)]='None',_0x55d253['Custom']=_0x4efea1(0x1b4),_0x55d253;}({});function _0x1e9b(_0x553ee5,_0x3f8c2b){_0x553ee5=_0x553ee5-0x197;const _0x229873=_0x2298();let _0x1e9bce=_0x229873[_0x553ee5];return _0x1e9bce;}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=_0x5dccaf(0x19b),o='printing-canvas';function s(_0x2b39c8,_0x55b506,_0xd1e04f){const _0x31d164=_0x5dccaf;let _0x5a0335=_0xd1e04f==='Portrait'?_0x2b39c8:_0x55b506,_0x54e60f=_0xd1e04f==='Portrait'?_0x55b506:_0x2b39c8,_0x44b5e3='\x0a\x20\x20\x20\x20.'+o+_0x31d164(0x1a8)+_0x5a0335+'px\x20'+_0x54e60f+_0x31d164(0x198)+a+_0x31d164(0x1aa)+a+_0x31d164(0x19d)+o+_0x31d164(0x199)+_0x54e60f+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5a0335+'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}',_0x246db4=document[_0x31d164(0x19e)](_0x31d164(0x1a1));return _0x246db4[_0x31d164(0x1a2)]=_0x44b5e3,_0x246db4['className']=_0x31d164(0x19a),_0x246db4;}function _0x2298(){const _0x2c14aa=['innerHTML','3122655uQceqP','Middle','End','5587632OPvXMS','FitPage','\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','Start',',\x20.','Origin','FitHeight','20itCfuq','Portrait','998332hoioZI','Narrow','42544qnwVkR','None','7VMuDrP','Custom','Landscape','1276945mdUQYR','557948blwZty','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.','\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','offline-printing-css','printing-canvas-container','Normal','\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.','createElement','Wide','3388092ZivAuO','style'];_0x2298=function(){return _0x2c14aa;};return _0x2298();}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 _0x550d(_0x237f7c,_0x1aeb6b){_0x237f7c=_0x237f7c-0x1ac;const _0x3d7e88=_0x3d7e();let _0x550d18=_0x3d7e88[_0x237f7c];return _0x550d18;}(function(_0x20ffaf,_0x4ef41e){const _0xa7024a=_0x550d,_0x42810e=_0x20ffaf();while(!![]){try{const _0x46d9b1=parseInt(_0xa7024a(0x1cf))/0x1*(parseInt(_0xa7024a(0x1be))/0x2)+parseInt(_0xa7024a(0x1d5))/0x3*(parseInt(_0xa7024a(0x1b5))/0x4)+parseInt(_0xa7024a(0x1c7))/0x5+parseInt(_0xa7024a(0x1c6))/0x6+-parseInt(_0xa7024a(0x1c3))/0x7*(-parseInt(_0xa7024a(0x1bc))/0x8)+parseInt(_0xa7024a(0x1d9))/0x9*(-parseInt(_0xa7024a(0x1b4))/0xa)+parseInt(_0xa7024a(0x1b1))/0xb*(-parseInt(_0xa7024a(0x1df))/0xc);if(_0x46d9b1===_0x4ef41e)break;else _0x42810e['push'](_0x42810e['shift']());}catch(_0x3cb163){_0x42810e['push'](_0x42810e['shift']());}}}(_0x3d7e,0x8cc60),function(_0x45ad4b,_0x1a1cab){const _0x1c9987=_0x550d;typeof exports=='object'&&typeof module<'u'?_0x1a1cab(exports):typeof define==_0x1c9987(0x1b7)&&define[_0x1c9987(0x1c2)]?define([_0x1c9987(0x1d6)],_0x1a1cab):(_0x45ad4b=typeof globalThis<'u'?globalThis:_0x45ad4b||self,_0x1a1cab(_0x45ad4b[_0x1c9987(0x1b8)]={}));}(this,function(_0x4596e8){const _0x29c923=_0x550d;Object[_0x29c923(0x1ad)](_0x4596e8,Symbol[_0x29c923(0x1c9)],{'value':_0x29c923(0x1b6)});let _0x138aee=function(_0x2a5e87){const _0x3ffd62=_0x29c923;return _0x2a5e87[_0x3ffd62(0x1d8)]=_0x3ffd62(0x1d8),_0x2a5e87['Landscape']=_0x3ffd62(0x1ca),_0x2a5e87;}({}),_0x314f0c=function(_0x2751d6){const _0x5d1785=_0x29c923;return _0x2751d6['Origin']=_0x5d1785(0x1d0),_0x2751d6[_0x5d1785(0x1da)]=_0x5d1785(0x1da),_0x2751d6[_0x5d1785(0x1d7)]=_0x5d1785(0x1d7),_0x2751d6[_0x5d1785(0x1bf)]='FitPage',_0x2751d6['Custom']=_0x5d1785(0x1db),_0x2751d6;}({}),_0x226d31=function(_0x323a42){const _0x3361e3=_0x29c923;return _0x323a42[_0x3361e3(0x1cd)]=_0x3361e3(0x1cd),_0x323a42[_0x3361e3(0x1c5)]='End',_0x323a42['Middle']=_0x3361e3(0x1bb),_0x323a42;}({}),_0x3494ce=function(_0x29ad97){const _0x290cd7=_0x29c923;return _0x29ad97[_0x290cd7(0x1c4)]=_0x290cd7(0x1c4),_0x29ad97[_0x290cd7(0x1d2)]=_0x290cd7(0x1d2),_0x29ad97[_0x290cd7(0x1ac)]=_0x290cd7(0x1ac),_0x29ad97[_0x290cd7(0x1d3)]=_0x290cd7(0x1d3),_0x29ad97[_0x290cd7(0x1db)]=_0x290cd7(0x1db),_0x29ad97;}({}),_0x5b38ba={'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}},_0x2f1759=_0x29c923(0x1af),_0x5c8e67='printing-canvas';function _0x54fbb3(_0x2c828c,_0x24999e,_0x5b9ec9){const _0xb52c8d=_0x29c923;let _0x47d0e3=_0x5b9ec9==='Portrait'?_0x2c828c:_0x24999e,_0xdb37e4=_0x5b9ec9===_0xb52c8d(0x1d8)?_0x24999e:_0x2c828c,_0x52041b=_0xb52c8d(0x1cc)+_0x5c8e67+_0xb52c8d(0x1ce)+_0x47d0e3+'px\x20'+_0xdb37e4+_0xb52c8d(0x1cb)+_0x2f1759+_0xb52c8d(0x1bd)+_0x2f1759+_0xb52c8d(0x1c0)+_0x5c8e67+_0xb52c8d(0x1d1)+_0xdb37e4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x47d0e3+_0xb52c8d(0x1c1),_0x4ff03e=document[_0xb52c8d(0x1c8)](_0xb52c8d(0x1b9));return _0x4ff03e[_0xb52c8d(0x1de)]=_0x52041b,_0x4ff03e[_0xb52c8d(0x1ba)]=_0xb52c8d(0x1b2),_0x4ff03e;}_0x4596e8[_0x29c923(0x1b3)]=_0x5c8e67,_0x4596e8[_0x29c923(0x1dd)]=_0x2f1759,_0x4596e8[_0x29c923(0x1d4)]=_0x5b38ba,_0x4596e8[_0x29c923(0x1ae)]=_0x226d31,_0x4596e8[_0x29c923(0x1b0)]=_0x138aee,_0x4596e8['PrintPaperMargin']=_0x3494ce,_0x4596e8['PrintScale']=_0x314f0c,_0x4596e8[_0x29c923(0x1dc)]=_0x54fbb3;}));function _0x3d7e(){const _0x1586b0=['FitHeight','Portrait','9495suyICI','FitWidth','Custom','createPrintStyle','PRINT_CONTAINER_CLASS','innerHTML','7483596HIIRUA','Wide','defineProperty','PrintAlign','printing-canvas-container','PrintDirection','22opcCgC','offline-printing-css','PRINT_CANVAS_CLASS','9290AvZozc','4BXXaTS','Module','function','UniverProPrint','style','className','Middle','8496jCZjEo',',\x20.','10jNSSKf','FitPage','\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.','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}','amd','3787iVTOEG','Normal','End','4939680mrnxoU','1695145mQtJvR','createElement','toStringTag','Landscape','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.','\x0a\x20\x20\x20\x20.','Start','\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','151007IqVlgK','Origin','\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','Narrow','None','PaperMarginMap','936249PYBgjp','exports'];_0x3d7e=function(){return _0x1586b0;};return _0x3d7e();}
1
+ function _0x1207(_0x2150af,_0x2cc4d2){_0x2150af=_0x2150af-0x153;const _0x32f33f=_0x32f3();let _0x1207ec=_0x32f33f[_0x2150af];return _0x1207ec;}function _0x32f3(){const _0x340fd3=['1964854duTiOB','148998PnYoLu','Origin','createElement','Wide','524671weBZuJ','\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','Landscape','exports','PRINT_CANVAS_CLASS','1743435pfxuFP','PrintAlign','40FCpnWc','PrintPaperMargin','toStringTag','innerHTML','3750slFQLo','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}','createPrintStyle',',\x20.','FitPage','842838NshkeW','\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','Normal','End','Module','Narrow','Start','8045PWUhLE','FitHeight','object','\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','12489260wZaZIi','px\x20','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','PrintDirection','64SubZLj','Middle','UniverProPrint','function','className','Custom'];_0x32f3=function(){return _0x340fd3;};return _0x32f3();}(function(_0x31834d,_0x1bad84){const _0x2cdb7a=_0x1207,_0x23e9d3=_0x31834d();while(!![]){try{const _0x27105b=parseInt(_0x2cdb7a(0x15d))/0x1+parseInt(_0x2cdb7a(0x175))/0x2+-parseInt(_0x2cdb7a(0x176))/0x3*(-parseInt(_0x2cdb7a(0x16f))/0x4)+parseInt(_0x2cdb7a(0x165))/0x5*(-parseInt(_0x2cdb7a(0x158))/0x6)+parseInt(_0x2cdb7a(0x17a))/0x7*(parseInt(_0x2cdb7a(0x154))/0x8)+-parseInt(_0x2cdb7a(0x17f))/0x9+-parseInt(_0x2cdb7a(0x16a))/0xa;if(_0x27105b===_0x1bad84)break;else _0x23e9d3['push'](_0x23e9d3['shift']());}catch(_0x39da7c){_0x23e9d3['push'](_0x23e9d3['shift']());}}}(_0x32f3,0x85674),function(_0x291c26,_0x5f2dc9){const _0x2afae2=_0x1207;typeof exports==_0x2afae2(0x167)&&typeof module<'u'?_0x5f2dc9(exports):typeof define==_0x2afae2(0x172)&&define['amd']?define([_0x2afae2(0x17d)],_0x5f2dc9):(_0x291c26=typeof globalThis<'u'?globalThis:_0x291c26||self,_0x5f2dc9(_0x291c26[_0x2afae2(0x171)]={}));}(this,function(_0xbd91c8){const _0x17ffb4=_0x1207;Object['defineProperty'](_0xbd91c8,Symbol[_0x17ffb4(0x156)],{'value':_0x17ffb4(0x162)});let _0x46a6de=function(_0x3a62a6){const _0x4a225f=_0x17ffb4;return _0x3a62a6[_0x4a225f(0x15f)]=_0x4a225f(0x15f),_0x3a62a6[_0x4a225f(0x17c)]=_0x4a225f(0x17c),_0x3a62a6;}({}),_0xd7f93a=function(_0x43899b){const _0x15196c=_0x17ffb4;return _0x43899b[_0x15196c(0x177)]=_0x15196c(0x177),_0x43899b[_0x15196c(0x169)]=_0x15196c(0x169),_0x43899b[_0x15196c(0x166)]=_0x15196c(0x166),_0x43899b[_0x15196c(0x15c)]=_0x15196c(0x15c),_0x43899b['Custom']=_0x15196c(0x174),_0x43899b;}({}),_0x100d6a=function(_0x4842f4){const _0x4ee8fe=_0x17ffb4;return _0x4842f4[_0x4ee8fe(0x164)]=_0x4ee8fe(0x164),_0x4842f4[_0x4ee8fe(0x161)]='End',_0x4842f4[_0x4ee8fe(0x170)]=_0x4ee8fe(0x170),_0x4842f4;}({}),_0x182d8a=function(_0x5de7e4){const _0x514af1=_0x17ffb4;return _0x5de7e4['Normal']=_0x514af1(0x160),_0x5de7e4[_0x514af1(0x163)]='Narrow',_0x5de7e4[_0x514af1(0x179)]=_0x514af1(0x179),_0x5de7e4[_0x514af1(0x16d)]=_0x514af1(0x16d),_0x5de7e4[_0x514af1(0x174)]=_0x514af1(0x174),_0x5de7e4;}({}),_0xe51cf={'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}},_0x3aad76='printing-canvas-container',_0x34ab0d='printing-canvas';function _0x1228f4(_0x2a0e08,_0x1fd760,_0x202745){const _0x1c712b=_0x17ffb4;let _0xe5cebb=_0x202745===_0x1c712b(0x15f)?_0x2a0e08:_0x1fd760,_0x5d2122=_0x202745===_0x1c712b(0x15f)?_0x1fd760:_0x2a0e08,_0x240ddb='\x0a\x20\x20\x20\x20.'+_0x34ab0d+_0x1c712b(0x15e)+_0xe5cebb+_0x1c712b(0x16b)+_0x5d2122+_0x1c712b(0x16c)+_0x3aad76+_0x1c712b(0x15b)+_0x3aad76+_0x1c712b(0x168)+_0x34ab0d+_0x1c712b(0x17b)+_0x5d2122+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xe5cebb+_0x1c712b(0x159),_0x1a0d1a=document[_0x1c712b(0x178)]('style');return _0x1a0d1a[_0x1c712b(0x157)]=_0x240ddb,_0x1a0d1a[_0x1c712b(0x173)]='offline-printing-css',_0x1a0d1a;}_0xbd91c8[_0x17ffb4(0x17e)]=_0x34ab0d,_0xbd91c8['PRINT_CONTAINER_CLASS']=_0x3aad76,_0xbd91c8['PaperMarginMap']=_0xe51cf,_0xbd91c8[_0x17ffb4(0x153)]=_0x100d6a,_0xbd91c8[_0x17ffb4(0x16e)]=_0x46a6de,_0xbd91c8[_0x17ffb4(0x155)]=_0x182d8a,_0xbd91c8['PrintScale']=_0xd7f93a,_0xbd91c8[_0x17ffb4(0x15a)]=_0x1228f4;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-beta.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.10",
53
- "@univerjs-infra/shared": "1.0.0-alpha.8"
53
+ "@univerjs-infra/shared": "1.0.0-beta.1"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",