@univerjs-pro/print 0.5.5 → 0.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x371282=_0x1f48;function _0x1f48(_0x31ba1f,_0x528286){const _0x1422bc=_0x1422();return _0x1f48=function(_0x1f483e,_0xf72c0b){_0x1f483e=_0x1f483e-0x1b4;let _0x133976=_0x1422bc[_0x1f483e];return _0x133976;},_0x1f48(_0x31ba1f,_0x528286);}(function(_0x20e56b,_0x1278f8){const _0x5db82d=_0x1f48,_0x190b6a=_0x20e56b();while(!![]){try{const _0x3a4072=-parseInt(_0x5db82d(0x1df))/0x1*(-parseInt(_0x5db82d(0x1c4))/0x2)+parseInt(_0x5db82d(0x1e1))/0x3*(-parseInt(_0x5db82d(0x1e0))/0x4)+parseInt(_0x5db82d(0x1c1))/0x5+-parseInt(_0x5db82d(0x1cd))/0x6*(-parseInt(_0x5db82d(0x1c6))/0x7)+-parseInt(_0x5db82d(0x1cb))/0x8*(-parseInt(_0x5db82d(0x1d4))/0x9)+-parseInt(_0x5db82d(0x1b5))/0xa+-parseInt(_0x5db82d(0x1c2))/0xb;if(_0x3a4072===_0x1278f8)break;else _0x190b6a['push'](_0x190b6a['shift']());}catch(_0x2ba45f){_0x190b6a['push'](_0x190b6a['shift']());}}}(_0x1422,0xaa2f8));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});var e=(_0x134482=>(_0x134482[_0x371282(0x1db)]=_0x371282(0x1db),_0x134482[_0x371282(0x1d5)]='Tabloid',_0x134482[_0x371282(0x1c0)]=_0x371282(0x1c0),_0x134482['Statement']=_0x371282(0x1d1),_0x134482[_0x371282(0x1b8)]='Executive',_0x134482[_0x371282(0x1bf)]=_0x371282(0x1bf),_0x134482['A3']='A3',_0x134482['A4']='A4',_0x134482['A5']='A5',_0x134482['B4']='B4',_0x134482['B5']='B5',_0x134482))(e||{}),i=(_0x12327f=>(_0x12327f['Portrait']=_0x371282(0x1d3),_0x12327f[_0x371282(0x1cc)]=_0x371282(0x1cc),_0x12327f))(i||{}),c=(_0x590397=>(_0x590397[_0x371282(0x1dd)]=_0x371282(0x1dd),_0x590397['FitWidth']=_0x371282(0x1c3),_0x590397[_0x371282(0x1be)]=_0x371282(0x1be),_0x590397[_0x371282(0x1ba)]=_0x371282(0x1ba),_0x590397[_0x371282(0x1cf)]=_0x371282(0x1cf),_0x590397))(c||{}),g=(_0x22ca10=>(_0x22ca10[_0x371282(0x1dc)]=_0x371282(0x1dc),_0x22ca10[_0x371282(0x1ce)]=_0x371282(0x1ce),_0x22ca10[_0x371282(0x1e3)]=_0x371282(0x1e3),_0x22ca10))(g||{}),o=(_0x4e728b=>(_0x4e728b[_0x371282(0x1d6)]=_0x371282(0x1d6),_0x4e728b['Narrow']=_0x371282(0x1b7),_0x4e728b[_0x371282(0x1d8)]='Wide',_0x4e728b[_0x371282(0x1d0)]=_0x371282(0x1d0),_0x4e728b))(o||{});function _0x1422(){const _0x322334=['px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','createPrintStyle','Letter','Start','Origin','innerHTML','23077NbJmxW','68yFNXax','4413mXGJLY','printing-canvas','Middle','printing-canvas-container','8257760aBViMq','PrintDirection','Narrow','Executive','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintPaperMargin','FitHeight','Folio','Legal','4567255YAbBtb','3836888DATqaN','FitWidth','70HNoNZe','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','200634VEjPxB','PRINT_CANVAS_CLASS','offline-printing-css','PaperSizePxMap','PrintAlign','1832BzGJvl','Landscape','18cVGZVW','End','Custom','None','Statement','px\x20','Portrait','3519wOgFfI','Tabloid','Normal','PaperMarginMap','Wide'];_0x1422=function(){return _0x322334;};return _0x1422();}const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x371282(0x1b8)]]:{'w':0x2b8,'h':0x3f0},[e[_0x371282(0x1bf)]]:{'w':0x330,'h':0x4e0},[e[_0x371282(0x1c0)]]:{'w':0x330,'h':0x540},[e[_0x371282(0x1db)]]:{'w':0x330,'h':0x420},[e[_0x371282(0x1d1)]]:{'w':0x210,'h':0x330},[e[_0x371282(0x1d5)]]:{'w':0x420,'h':0x660}},N={[o[_0x371282(0x1d6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x371282(0x1b7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x371282(0x1d8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x371282(0x1d0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x371282(0x1b4),p=_0x371282(0x1e2);function A(_0x165a61,_0x1ba285){const _0x198a41=_0x371282,{w:_0x186319,h:_0xd13636}=m[_0x165a61],_0x191f9c=_0x1ba285===i['Portrait']?_0x186319:_0xd13636,_0x42b3c4=_0x1ba285===i[_0x198a41(0x1d3)]?_0xd13636:_0x186319,_0x28b293=_0x198a41(0x1b9)+_0x191f9c+_0x198a41(0x1d2)+_0x42b3c4+_0x198a41(0x1d9)+n+',\x20.'+n+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+p+_0x198a41(0x1bc)+_0x42b3c4+_0x198a41(0x1c5)+_0x191f9c+_0x198a41(0x1bb),_0xb5ec43=document['createElement']('style');return _0xb5ec43[_0x198a41(0x1de)]=_0x28b293,_0xb5ec43['className']=_0x198a41(0x1c8),_0xb5ec43;}exports[_0x371282(0x1c7)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x371282(0x1d7)]=N,exports[_0x371282(0x1c9)]=m,exports[_0x371282(0x1ca)]=g,exports[_0x371282(0x1b6)]=i,exports[_0x371282(0x1bd)]=o,exports['PrintPaperSize']=e,exports['PrintScale']=c,exports[_0x371282(0x1da)]=A;
1
+ 'use strict';const _0x25807b=_0x11fa;(function(_0x56d047,_0x48e4e9){const _0x509807=_0x11fa,_0xb94384=_0x56d047();while(!![]){try{const _0x48b74e=parseInt(_0x509807(0x173))/0x1*(-parseInt(_0x509807(0x186))/0x2)+parseInt(_0x509807(0x169))/0x3*(-parseInt(_0x509807(0x176))/0x4)+-parseInt(_0x509807(0x17e))/0x5*(parseInt(_0x509807(0x185))/0x6)+parseInt(_0x509807(0x167))/0x7*(-parseInt(_0x509807(0x15c))/0x8)+parseInt(_0x509807(0x160))/0x9*(-parseInt(_0x509807(0x168))/0xa)+-parseInt(_0x509807(0x16e))/0xb*(-parseInt(_0x509807(0x188))/0xc)+parseInt(_0x509807(0x17a))/0xd*(parseInt(_0x509807(0x18e))/0xe);if(_0x48b74e===_0x48e4e9)break;else _0xb94384['push'](_0xb94384['shift']());}catch(_0x153217){_0xb94384['push'](_0xb94384['shift']());}}}(_0x3030,0x8e666));Object[_0x25807b(0x183)](exports,Symbol[_0x25807b(0x17f)],{'value':_0x25807b(0x175)});var e=(_0x391743=>(_0x391743[_0x25807b(0x162)]=_0x25807b(0x162),_0x391743[_0x25807b(0x18a)]=_0x25807b(0x18a),_0x391743[_0x25807b(0x161)]='Legal',_0x391743[_0x25807b(0x15f)]=_0x25807b(0x15f),_0x391743[_0x25807b(0x166)]=_0x25807b(0x166),_0x391743[_0x25807b(0x189)]=_0x25807b(0x189),_0x391743['A3']='A3',_0x391743['A4']='A4',_0x391743['A5']='A5',_0x391743['B4']='B4',_0x391743['B5']='B5',_0x391743))(e||{}),i=(_0x4983fa=>(_0x4983fa[_0x25807b(0x17b)]=_0x25807b(0x17b),_0x4983fa[_0x25807b(0x181)]='Landscape',_0x4983fa))(i||{}),c=(_0x44b7d4=>(_0x44b7d4[_0x25807b(0x18f)]=_0x25807b(0x18f),_0x44b7d4[_0x25807b(0x174)]=_0x25807b(0x174),_0x44b7d4[_0x25807b(0x177)]=_0x25807b(0x177),_0x44b7d4[_0x25807b(0x191)]='FitPage',_0x44b7d4[_0x25807b(0x15e)]='Custom',_0x44b7d4))(c||{}),g=(_0x768ded=>(_0x768ded[_0x25807b(0x16a)]=_0x25807b(0x16a),_0x768ded[_0x25807b(0x17c)]=_0x25807b(0x17c),_0x768ded['Middle']=_0x25807b(0x18d),_0x768ded))(g||{}),o=(_0x34f53f=>(_0x34f53f[_0x25807b(0x184)]=_0x25807b(0x184),_0x34f53f[_0x25807b(0x15d)]=_0x25807b(0x15d),_0x34f53f[_0x25807b(0x16c)]=_0x25807b(0x16c),_0x34f53f[_0x25807b(0x187)]=_0x25807b(0x187),_0x34f53f))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x25807b(0x166)]]:{'w':0x2b8,'h':0x3f0},[e[_0x25807b(0x189)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x25807b(0x162)]]:{'w':0x330,'h':0x420},[e[_0x25807b(0x15f)]]:{'w':0x210,'h':0x330},[e[_0x25807b(0x18a)]]:{'w':0x420,'h':0x660}},N={[o[_0x25807b(0x184)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x25807b(0x16c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x25807b(0x180);function _0x11fa(_0x4bf87a,_0x4c96eb){const _0x30307b=_0x3030();return _0x11fa=function(_0x11faf9,_0x31a885){_0x11faf9=_0x11faf9-0x15c;let _0x229ae6=_0x30307b[_0x11faf9];return _0x229ae6;},_0x11fa(_0x4bf87a,_0x4c96eb);}function A(_0x14c5c5,_0x5a71e1){const _0x54d6d2=_0x25807b,{w:_0x28655d,h:_0x11173d}=m[_0x14c5c5],_0x9d93d5=_0x5a71e1===i[_0x54d6d2(0x17b)]?_0x28655d:_0x11173d,_0xc6e6fa=_0x5a71e1===i['Portrait']?_0x11173d:_0x28655d,_0x4d8e71=_0x54d6d2(0x163)+_0x9d93d5+_0x54d6d2(0x16f)+_0xc6e6fa+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+n+_0x54d6d2(0x165)+n+_0x54d6d2(0x171)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0xc6e6fa+_0x54d6d2(0x164)+_0x9d93d5+_0x54d6d2(0x17d),_0x3a71a4=document[_0x54d6d2(0x18c)](_0x54d6d2(0x16d));return _0x3a71a4['innerHTML']=_0x4d8e71,_0x3a71a4[_0x54d6d2(0x190)]='offline-printing-css',_0x3a71a4;}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x25807b(0x178)]=N,exports[_0x25807b(0x182)]=m,exports[_0x25807b(0x172)]=g,exports[_0x25807b(0x16b)]=i,exports[_0x25807b(0x170)]=o,exports['PrintPaperSize']=e,exports[_0x25807b(0x18b)]=c,exports[_0x25807b(0x179)]=A;function _0x3030(){const _0xebd09f=['FitHeight','PaperMarginMap','createPrintStyle','132847dGkBAO','Portrait','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','139255dIbxtK','toStringTag','printing-canvas','Landscape','PaperSizePxMap','defineProperty','Normal','66ytzniD','17932UtcKCP','None','8340vsGbPZ','Folio','Tabloid','PrintScale','createElement','Middle','1932SNVClh','Origin','className','FitPage','11912aPllJC','Narrow','Custom','Statement','1770849VlnHZa','Legal','Letter','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','Executive','581hjLBVI','10KJWkYw','129XhEsBa','Start','PrintDirection','Wide','style','14366MBoNrD','px\x20','PrintPaperMargin','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','PrintAlign','79LBMGdO','FitWidth','Module','37172Uqvktm'];_0x3030=function(){return _0xebd09f;};return _0x3030();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0xe3a7(_0x4ba633,_0x5dbbe6){const _0x3cb271=_0x3cb2();return _0xe3a7=function(_0xe3a7b,_0x36181a){_0xe3a7b=_0xe3a7b-0x192;let _0x3cad68=_0x3cb271[_0xe3a7b];return _0x3cad68;},_0xe3a7(_0x4ba633,_0x5dbbe6);}const _0x76d2b=_0xe3a7;(function(_0x50e86b,_0x256a80){const _0x31bc33=_0xe3a7,_0x2f9086=_0x50e86b();while(!![]){try{const _0x3371da=-parseInt(_0x31bc33(0x1af))/0x1+-parseInt(_0x31bc33(0x199))/0x2+parseInt(_0x31bc33(0x1a1))/0x3*(-parseInt(_0x31bc33(0x1a6))/0x4)+-parseInt(_0x31bc33(0x1ad))/0x5*(-parseInt(_0x31bc33(0x1a8))/0x6)+parseInt(_0x31bc33(0x1b0))/0x7+parseInt(_0x31bc33(0x1a2))/0x8*(-parseInt(_0x31bc33(0x1b7))/0x9)+parseInt(_0x31bc33(0x1b6))/0xa;if(_0x3371da===_0x256a80)break;else _0x2f9086['push'](_0x2f9086['shift']());}catch(_0x20e6e9){_0x2f9086['push'](_0x2f9086['shift']());}}}(_0x3cb2,0xe16c4));var o=(_0x23136e=>(_0x23136e[_0x76d2b(0x196)]='Letter',_0x23136e[_0x76d2b(0x1a0)]=_0x76d2b(0x1a0),_0x23136e['Legal']='Legal',_0x23136e[_0x76d2b(0x195)]=_0x76d2b(0x195),_0x23136e[_0x76d2b(0x1ac)]='Executive',_0x23136e[_0x76d2b(0x1b3)]=_0x76d2b(0x1b3),_0x23136e['A3']='A3',_0x23136e['A4']='A4',_0x23136e['A5']='A5',_0x23136e['B4']='B4',_0x23136e['B5']='B5',_0x23136e))(o||{}),i=(_0x84cfd3=>(_0x84cfd3[_0x76d2b(0x1ab)]=_0x76d2b(0x1ab),_0x84cfd3[_0x76d2b(0x193)]='Landscape',_0x84cfd3))(i||{}),w=(_0x286069=>(_0x286069[_0x76d2b(0x192)]=_0x76d2b(0x192),_0x286069['FitWidth']=_0x76d2b(0x19d),_0x286069[_0x76d2b(0x1b1)]=_0x76d2b(0x1b1),_0x286069[_0x76d2b(0x194)]=_0x76d2b(0x194),_0x286069[_0x76d2b(0x198)]=_0x76d2b(0x198),_0x286069))(w||{}),m=(_0x3e3cd8=>(_0x3e3cd8[_0x76d2b(0x19f)]=_0x76d2b(0x19f),_0x3e3cd8['End']='End',_0x3e3cd8[_0x76d2b(0x19c)]=_0x76d2b(0x19c),_0x3e3cd8))(m||{}),e=(_0x35ca3c=>(_0x35ca3c['Normal']=_0x76d2b(0x1ae),_0x35ca3c[_0x76d2b(0x1a3)]=_0x76d2b(0x1a3),_0x35ca3c['Wide']='Wide',_0x35ca3c[_0x76d2b(0x1b9)]=_0x76d2b(0x1b9),_0x35ca3c))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x76d2b(0x1ac)]]:{'w':0x2b8,'h':0x3f0},[o[_0x76d2b(0x1b3)]]:{'w':0x330,'h':0x4e0},[o[_0x76d2b(0x19b)]]:{'w':0x330,'h':0x540},[o[_0x76d2b(0x196)]]:{'w':0x330,'h':0x420},[o[_0x76d2b(0x195)]]:{'w':0x210,'h':0x330},[o[_0x76d2b(0x1a0)]]:{'w':0x420,'h':0x660}},v={[e[_0x76d2b(0x1ae)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x76d2b(0x1a3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x76d2b(0x1aa)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x76d2b(0x1a5);function _0x3cb2(){const _0x1f16b6=['printing-canvas','168076jOHBGx','offline-printing-css','8070rLLtkm','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Wide','Portrait','Executive','3595zfvQNc','Normal','1338276PnvCWb','5672163vwdkTg','FitHeight','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Folio','innerHTML',',\x20.','24881620rTCPcr','396FhbCtz','style','None','Origin','Landscape','FitPage','Statement','Letter','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','3692888NLGGXv','className','Legal','Middle','FitWidth','px\x20','Start','Tabloid','6xjuSet','13352IZBFUC','Narrow','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x3cb2=function(){return _0x1f16b6;};return _0x3cb2();}function N(_0x2a11dd,_0x1bf8a6){const _0x506a88=_0x76d2b,{w:_0x525a44,h:_0x612f31}=g[_0x2a11dd],_0x4a8d3c=_0x1bf8a6===i[_0x506a88(0x1ab)]?_0x525a44:_0x612f31,_0x147945=_0x1bf8a6===i['Portrait']?_0x612f31:_0x525a44,_0x263d20=_0x506a88(0x1a9)+_0x4a8d3c+_0x506a88(0x19e)+_0x147945+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+_0x506a88(0x1b5)+l+_0x506a88(0x1b2)+p+_0x506a88(0x1a4)+_0x147945+_0x506a88(0x197)+_0x4a8d3c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x5a4548=document['createElement'](_0x506a88(0x1b8));return _0x5a4548[_0x506a88(0x1b4)]=_0x263d20,_0x5a4548[_0x506a88(0x19a)]=_0x506a88(0x1a7),_0x5a4548;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
1
+ function _0x286f(){const _0x511f5e=['2130376CSRDYP','5PUWbFp','18rJemTX','Middle','printing-canvas','className','offline-printing-css','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1619300AXfYWl','Portrait','Legal','865188aAUlEQ','196934cADBJD','Statement','Letter','Tabloid','Normal','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','176trVbyH','Executive','Custom','style','End','Start','None','Landscape','Narrow','Origin','309460jLgmmv','285948hlQYxp','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','14ZeGjSQ','Folio','px\x20','Wide','FitWidth','FitHeight','289330zOwtaz','createElement'];_0x286f=function(){return _0x511f5e;};return _0x286f();}const _0x564ca8=_0x1ca9;(function(_0x342209,_0x69f255){const _0x58a614=_0x1ca9,_0x16cac7=_0x342209();while(!![]){try{const _0x51395d=parseInt(_0x58a614(0x19a))/0x1*(-parseInt(_0x58a614(0x17e))/0x2)+parseInt(_0x58a614(0x18f))/0x3+parseInt(_0x58a614(0x17a))/0x4+-parseInt(_0x58a614(0x18e))/0x5+parseInt(_0x58a614(0x17d))/0x6*(-parseInt(_0x58a614(0x191))/0x7)+parseInt(_0x58a614(0x199))/0x8*(parseInt(_0x58a614(0x19b))/0x9)+-parseInt(_0x58a614(0x197))/0xa*(-parseInt(_0x58a614(0x184))/0xb);if(_0x51395d===_0x69f255)break;else _0x16cac7['push'](_0x16cac7['shift']());}catch(_0x4c3379){_0x16cac7['push'](_0x16cac7['shift']());}}}(_0x286f,0x9f6f0));var o=(_0x50d4f4=>(_0x50d4f4[_0x564ca8(0x180)]=_0x564ca8(0x180),_0x50d4f4[_0x564ca8(0x181)]=_0x564ca8(0x181),_0x50d4f4['Legal']='Legal',_0x50d4f4[_0x564ca8(0x17f)]=_0x564ca8(0x17f),_0x50d4f4[_0x564ca8(0x185)]='Executive',_0x50d4f4[_0x564ca8(0x192)]='Folio',_0x50d4f4['A3']='A3',_0x50d4f4['A4']='A4',_0x50d4f4['A5']='A5',_0x50d4f4['B4']='B4',_0x50d4f4['B5']='B5',_0x50d4f4))(o||{}),i=(_0x1b6bf0=>(_0x1b6bf0[_0x564ca8(0x17b)]=_0x564ca8(0x17b),_0x1b6bf0[_0x564ca8(0x18b)]=_0x564ca8(0x18b),_0x1b6bf0))(i||{}),w=(_0x555da1=>(_0x555da1[_0x564ca8(0x18d)]=_0x564ca8(0x18d),_0x555da1[_0x564ca8(0x195)]=_0x564ca8(0x195),_0x555da1[_0x564ca8(0x196)]=_0x564ca8(0x196),_0x555da1[_0x564ca8(0x177)]=_0x564ca8(0x177),_0x555da1[_0x564ca8(0x186)]=_0x564ca8(0x186),_0x555da1))(w||{}),m=(_0x4b990c=>(_0x4b990c[_0x564ca8(0x189)]='Start',_0x4b990c[_0x564ca8(0x188)]='End',_0x4b990c[_0x564ca8(0x19c)]=_0x564ca8(0x19c),_0x4b990c))(m||{}),e=(_0x46cfa1=>(_0x46cfa1[_0x564ca8(0x182)]=_0x564ca8(0x182),_0x46cfa1[_0x564ca8(0x18c)]=_0x564ca8(0x18c),_0x46cfa1[_0x564ca8(0x194)]='Wide',_0x46cfa1[_0x564ca8(0x18a)]=_0x564ca8(0x18a),_0x46cfa1))(e||{});function _0x1ca9(_0x3842a1,_0x58fe9d){const _0x286f95=_0x286f();return _0x1ca9=function(_0x1ca919,_0x2c244d){_0x1ca919=_0x1ca919-0x175;let _0x1ef541=_0x286f95[_0x1ca919];return _0x1ef541;},_0x1ca9(_0x3842a1,_0x58fe9d);}const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x564ca8(0x185)]]:{'w':0x2b8,'h':0x3f0},[o[_0x564ca8(0x192)]]:{'w':0x330,'h':0x4e0},[o[_0x564ca8(0x17c)]]:{'w':0x330,'h':0x540},[o[_0x564ca8(0x180)]]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x564ca8(0x182)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x564ca8(0x18c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x564ca8(0x194)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x564ca8(0x19d);function N(_0x407dc6,_0x1d2516){const _0x1979d6=_0x564ca8,{w:_0x490bc2,h:_0x456c5d}=g[_0x407dc6],_0x426401=_0x1d2516===i[_0x1979d6(0x17b)]?_0x490bc2:_0x456c5d,_0x320fcc=_0x1d2516===i['Portrait']?_0x456c5d:_0x490bc2,_0x39513a='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x426401+_0x1979d6(0x193)+_0x320fcc+_0x1979d6(0x183)+l+',\x20.'+l+_0x1979d6(0x190)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x320fcc+_0x1979d6(0x178)+_0x426401+_0x1979d6(0x179),_0x29a630=document[_0x1979d6(0x198)](_0x1979d6(0x187));return _0x29a630['innerHTML']=_0x39513a,_0x29a630[_0x1979d6(0x175)]=_0x1979d6(0x176),_0x29a630;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x7e43f1,_0x3fa9de){const _0x32d106=_0x4594,_0x490b21=_0x7e43f1();while(!![]){try{const _0x58ecdd=parseInt(_0x32d106(0x1dd))/0x1+-parseInt(_0x32d106(0x1e2))/0x2*(-parseInt(_0x32d106(0x1f7))/0x3)+-parseInt(_0x32d106(0x203))/0x4+parseInt(_0x32d106(0x205))/0x5+-parseInt(_0x32d106(0x1fa))/0x6+parseInt(_0x32d106(0x200))/0x7+-parseInt(_0x32d106(0x1e7))/0x8;if(_0x58ecdd===_0x3fa9de)break;else _0x490b21['push'](_0x490b21['shift']());}catch(_0x19c721){_0x490b21['push'](_0x490b21['shift']());}}}(_0x1139,0xe2674),function(_0x103221,_0x3515db){const _0x287e52=_0x4594;typeof exports=='object'&&typeof module<'u'?_0x3515db(exports):typeof define==_0x287e52(0x1f9)&&define['amd']?define([_0x287e52(0x1e3)],_0x3515db):(_0x103221=typeof globalThis<'u'?globalThis:_0x103221||self,_0x3515db(_0x103221[_0x287e52(0x1ff)]={}));}(this,function(_0x9af397){'use strict';const _0x1e0f09=_0x4594;var _0x408ffd=(_0xce0655=>(_0xce0655['Letter']='Letter',_0xce0655[_0x1e0f09(0x20a)]=_0x1e0f09(0x20a),_0xce0655['Legal']=_0x1e0f09(0x1eb),_0xce0655[_0x1e0f09(0x1de)]='Statement',_0xce0655[_0x1e0f09(0x20c)]='Executive',_0xce0655[_0x1e0f09(0x1ea)]='Folio',_0xce0655['A3']='A3',_0xce0655['A4']='A4',_0xce0655['A5']='A5',_0xce0655['B4']='B4',_0xce0655['B5']='B5',_0xce0655))(_0x408ffd||{}),_0x581c47=(_0x4db561=>(_0x4db561[_0x1e0f09(0x20d)]=_0x1e0f09(0x20d),_0x4db561[_0x1e0f09(0x1f8)]='Landscape',_0x4db561))(_0x581c47||{}),_0x1a60d9=(_0x184b0d=>(_0x184b0d['Origin']='Origin',_0x184b0d[_0x1e0f09(0x1ed)]=_0x1e0f09(0x1ed),_0x184b0d[_0x1e0f09(0x1f3)]='FitHeight',_0x184b0d['FitPage']=_0x1e0f09(0x1df),_0x184b0d[_0x1e0f09(0x1fe)]=_0x1e0f09(0x1fe),_0x184b0d))(_0x1a60d9||{}),_0x5d24d5=(_0x110405=>(_0x110405['Start']='Start',_0x110405[_0x1e0f09(0x1ee)]=_0x1e0f09(0x1ee),_0x110405[_0x1e0f09(0x1f1)]=_0x1e0f09(0x1f1),_0x110405))(_0x5d24d5||{}),_0x7f8213=(_0x34463b=>(_0x34463b['Normal']='Normal',_0x34463b[_0x1e0f09(0x1ec)]=_0x1e0f09(0x1ec),_0x34463b[_0x1e0f09(0x1e5)]=_0x1e0f09(0x1e5),_0x34463b['None']=_0x1e0f09(0x1fd),_0x34463b))(_0x7f8213||{});const _0x54fe16={[_0x408ffd['A3']]:{'w':0x463,'h':0x633},[_0x408ffd['A4']]:{'w':0x31a,'h':0x464},[_0x408ffd['A5']]:{'w':0x22f,'h':0x31a},[_0x408ffd['B4']]:{'w':0x3b0,'h':0x540},[_0x408ffd['B5']]:{'w':0x299,'h':0x3b0},[_0x408ffd['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x408ffd[_0x1e0f09(0x1ea)]]:{'w':0x330,'h':0x4e0},[_0x408ffd[_0x1e0f09(0x1eb)]]:{'w':0x330,'h':0x540},[_0x408ffd[_0x1e0f09(0x1e0)]]:{'w':0x330,'h':0x420},[_0x408ffd[_0x1e0f09(0x1de)]]:{'w':0x210,'h':0x330},[_0x408ffd[_0x1e0f09(0x20a)]]:{'w':0x420,'h':0x660}},_0x962988={[_0x7f8213['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x7f8213['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x7f8213[_0x1e0f09(0x1e5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x7f8213[_0x1e0f09(0x1fd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x24032e=_0x1e0f09(0x1e6),_0x1451dc=_0x1e0f09(0x1ef);function _0x3b4794(_0x57f80,_0x27e474){const _0x3a6132=_0x1e0f09,{w:_0x5ca020,h:_0x2a23e4}=_0x54fe16[_0x57f80],_0xfe726f=_0x27e474===_0x581c47['Portrait']?_0x5ca020:_0x2a23e4,_0x3a37a3=_0x27e474===_0x581c47[_0x3a6132(0x20d)]?_0x2a23e4:_0x5ca020,_0x257a28=_0x3a6132(0x1fb)+_0xfe726f+_0x3a6132(0x1e4)+_0x3a37a3+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x24032e+_0x3a6132(0x202)+_0x24032e+_0x3a6132(0x1db)+_0x1451dc+_0x3a6132(0x1fc)+_0x3a37a3+_0x3a6132(0x201)+_0xfe726f+_0x3a6132(0x20b),_0xfbe8fd=document[_0x3a6132(0x1f4)]('style');return _0xfbe8fd[_0x3a6132(0x1e9)]=_0x257a28,_0xfbe8fd[_0x3a6132(0x1f5)]='offline-printing-css',_0xfbe8fd;}_0x9af397[_0x1e0f09(0x1e1)]=_0x1451dc,_0x9af397[_0x1e0f09(0x207)]=_0x24032e,_0x9af397[_0x1e0f09(0x208)]=_0x962988,_0x9af397['PaperSizePxMap']=_0x54fe16,_0x9af397['PrintAlign']=_0x5d24d5,_0x9af397[_0x1e0f09(0x1dc)]=_0x581c47,_0x9af397[_0x1e0f09(0x204)]=_0x7f8213,_0x9af397[_0x1e0f09(0x1f6)]=_0x408ffd,_0x9af397[_0x1e0f09(0x1f0)]=_0x1a60d9,_0x9af397[_0x1e0f09(0x206)]=_0x3b4794,Object[_0x1e0f09(0x1e8)](_0x9af397,Symbol[_0x1e0f09(0x1f2)],{'value':_0x1e0f09(0x209)});}));function _0x4594(_0x25659b,_0x31c3ff){const _0x1139b9=_0x1139();return _0x4594=function(_0x459468,_0xf916dc){_0x459468=_0x459468-0x1db;let _0x370c61=_0x1139b9[_0x459468];return _0x370c61;},_0x4594(_0x25659b,_0x31c3ff);}function _0x1139(){const _0x1b4caa=['FitPage','Letter','PRINT_CANVAS_CLASS','452YDNrGm','exports','px\x20','Wide','printing-canvas-container','10723608hedvQm','defineProperty','innerHTML','Folio','Legal','Narrow','FitWidth','End','printing-canvas','PrintScale','Middle','toStringTag','FitHeight','createElement','className','PrintPaperSize','6036KXqsme','Landscape','function','6665568uNXDlC','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','None','Custom','UniverProPrint','5454134vjHQhW','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','4114696DLreKj','PrintPaperMargin','7725650lmHiDW','createPrintStyle','PRINT_CONTAINER_CLASS','PaperMarginMap','Module','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Executive','Portrait','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','PrintDirection','1628397ZvInPQ','Statement'];_0x1139=function(){return _0x1b4caa;};return _0x1139();}
1
+ function _0x1163(_0xa12ed,_0x45bfd4){const _0x5e3c40=_0x5e3c();return _0x1163=function(_0x116323,_0x4f31f9){_0x116323=_0x116323-0x110;let _0x3ae485=_0x5e3c40[_0x116323];return _0x3ae485;},_0x1163(_0xa12ed,_0x45bfd4);}function _0x5e3c(){const _0xcbe1e7=['Portrait','Middle','Origin','Statement','px\x20','Tabloid','33890gAWSUV','PrintPaperSize','103968BqnOab','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','function','Start','PaperSizePxMap','className','FitHeight','PrintAlign','1AxHswX','Narrow',',\x20.','toStringTag','1319402HtaVgH','19229NjfdOA','exports','Letter','Wide','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','PaperMarginMap','3862224eyztHy','1360236DYTlgw','FitWidth','Normal','object','Executive','3883URpnpZ','createElement','PRINT_CONTAINER_CLASS','2575ksNQtL','FitPage','Landscape','Module','Legal','End','createPrintStyle','536aFsjuD','UniverProPrint','None','44HHuHnq','style','PRINT_CANVAS_CLASS','Folio'];_0x5e3c=function(){return _0xcbe1e7;};return _0x5e3c();}(function(_0xa6b5d6,_0x105926){const _0x33d4d7=_0x1163,_0x5db127=_0xa6b5d6();while(!![]){try{const _0xff448f=-parseInt(_0x33d4d7(0x113))/0x1*(parseInt(_0x33d4d7(0x117))/0x2)+parseInt(_0x33d4d7(0x11f))/0x3+-parseInt(_0x33d4d7(0x131))/0x4*(parseInt(_0x33d4d7(0x127))/0x5)+parseInt(_0x33d4d7(0x13d))/0x6+-parseInt(_0x33d4d7(0x118))/0x7*(parseInt(_0x33d4d7(0x12e))/0x8)+-parseInt(_0x33d4d7(0x11e))/0x9+-parseInt(_0x33d4d7(0x13b))/0xa*(-parseInt(_0x33d4d7(0x124))/0xb);if(_0xff448f===_0x105926)break;else _0x5db127['push'](_0x5db127['shift']());}catch(_0x31e56a){_0x5db127['push'](_0x5db127['shift']());}}}(_0x5e3c,0x5ed9a),function(_0x1f6f52,_0x490ba7){const _0x1655c1=_0x1163;typeof exports==_0x1655c1(0x122)&&typeof module<'u'?_0x490ba7(exports):typeof define==_0x1655c1(0x13f)&&define['amd']?define([_0x1655c1(0x119)],_0x490ba7):(_0x1f6f52=typeof globalThis<'u'?globalThis:_0x1f6f52||self,_0x490ba7(_0x1f6f52[_0x1655c1(0x12f)]={}));}(this,function(_0x4b7ced){'use strict';const _0x4ff8c0=_0x1163;var _0x3b0f7f=(_0x5eb89b=>(_0x5eb89b['Letter']=_0x4ff8c0(0x11a),_0x5eb89b['Tabloid']=_0x4ff8c0(0x13a),_0x5eb89b[_0x4ff8c0(0x12b)]='Legal',_0x5eb89b[_0x4ff8c0(0x138)]='Statement',_0x5eb89b[_0x4ff8c0(0x123)]=_0x4ff8c0(0x123),_0x5eb89b['Folio']=_0x4ff8c0(0x134),_0x5eb89b['A3']='A3',_0x5eb89b['A4']='A4',_0x5eb89b['A5']='A5',_0x5eb89b['B4']='B4',_0x5eb89b['B5']='B5',_0x5eb89b))(_0x3b0f7f||{}),_0x1a7513=(_0x566488=>(_0x566488[_0x4ff8c0(0x135)]=_0x4ff8c0(0x135),_0x566488['Landscape']=_0x4ff8c0(0x129),_0x566488))(_0x1a7513||{}),_0x47e02c=(_0x54d137=>(_0x54d137['Origin']=_0x4ff8c0(0x137),_0x54d137[_0x4ff8c0(0x120)]=_0x4ff8c0(0x120),_0x54d137[_0x4ff8c0(0x111)]=_0x4ff8c0(0x111),_0x54d137[_0x4ff8c0(0x128)]=_0x4ff8c0(0x128),_0x54d137['Custom']='Custom',_0x54d137))(_0x47e02c||{}),_0x3ae3fa=(_0x55c665=>(_0x55c665['Start']=_0x4ff8c0(0x140),_0x55c665[_0x4ff8c0(0x12c)]=_0x4ff8c0(0x12c),_0x55c665['Middle']=_0x4ff8c0(0x136),_0x55c665))(_0x3ae3fa||{}),_0x1655b9=(_0x191294=>(_0x191294['Normal']=_0x4ff8c0(0x121),_0x191294['Narrow']=_0x4ff8c0(0x114),_0x191294['Wide']=_0x4ff8c0(0x11b),_0x191294['None']=_0x4ff8c0(0x130),_0x191294))(_0x1655b9||{});const _0x11f785={[_0x3b0f7f['A3']]:{'w':0x463,'h':0x633},[_0x3b0f7f['A4']]:{'w':0x31a,'h':0x464},[_0x3b0f7f['A5']]:{'w':0x22f,'h':0x31a},[_0x3b0f7f['B4']]:{'w':0x3b0,'h':0x540},[_0x3b0f7f['B5']]:{'w':0x299,'h':0x3b0},[_0x3b0f7f[_0x4ff8c0(0x123)]]:{'w':0x2b8,'h':0x3f0},[_0x3b0f7f['Folio']]:{'w':0x330,'h':0x4e0},[_0x3b0f7f[_0x4ff8c0(0x12b)]]:{'w':0x330,'h':0x540},[_0x3b0f7f['Letter']]:{'w':0x330,'h':0x420},[_0x3b0f7f[_0x4ff8c0(0x138)]]:{'w':0x210,'h':0x330},[_0x3b0f7f[_0x4ff8c0(0x13a)]]:{'w':0x420,'h':0x660}},_0x4c2951={[_0x1655b9[_0x4ff8c0(0x121)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1655b9[_0x4ff8c0(0x114)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1655b9[_0x4ff8c0(0x11b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1655b9[_0x4ff8c0(0x130)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2fc711='printing-canvas-container',_0x1609c5='printing-canvas';function _0x5a88bc(_0x586cf8,_0x11ea75){const _0x1f08e0=_0x4ff8c0,{w:_0x5ed7b5,h:_0xa32974}=_0x11f785[_0x586cf8],_0xc5a116=_0x11ea75===_0x1a7513[_0x1f08e0(0x135)]?_0x5ed7b5:_0xa32974,_0x1f091b=_0x11ea75===_0x1a7513[_0x1f08e0(0x135)]?_0xa32974:_0x5ed7b5,_0x3d513b='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0xc5a116+_0x1f08e0(0x139)+_0x1f091b+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x2fc711+_0x1f08e0(0x115)+_0x2fc711+_0x1f08e0(0x11c)+_0x1609c5+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x1f091b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xc5a116+_0x1f08e0(0x13e),_0x45a7b2=document[_0x1f08e0(0x125)](_0x1f08e0(0x132));return _0x45a7b2['innerHTML']=_0x3d513b,_0x45a7b2[_0x1f08e0(0x110)]='offline-printing-css',_0x45a7b2;}_0x4b7ced[_0x4ff8c0(0x133)]=_0x1609c5,_0x4b7ced[_0x4ff8c0(0x126)]=_0x2fc711,_0x4b7ced[_0x4ff8c0(0x11d)]=_0x4c2951,_0x4b7ced[_0x4ff8c0(0x141)]=_0x11f785,_0x4b7ced[_0x4ff8c0(0x112)]=_0x3ae3fa,_0x4b7ced['PrintDirection']=_0x1a7513,_0x4b7ced['PrintPaperMargin']=_0x1655b9,_0x4b7ced[_0x4ff8c0(0x13c)]=_0x3b0f7f,_0x4b7ced['PrintScale']=_0x47e02c,_0x4b7ced[_0x4ff8c0(0x12d)]=_0x5a88bc,Object['defineProperty'](_0x4b7ced,Symbol[_0x4ff8c0(0x116)],{'value':_0x4ff8c0(0x12a)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.5.5",
3
+ "version": "0.6.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,10 +42,10 @@
42
42
  "lib"
43
43
  ],
44
44
  "devDependencies": {
45
- "typescript": "^5.7.2",
45
+ "typescript": "^5.7.3",
46
46
  "vite": "^6.0.7",
47
47
  "vitest": "^2.1.8",
48
- "@univerjs-infra/shared": "0.5.5"
48
+ "@univerjs-infra/shared": "0.6.0-alpha.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",