@univerjs-pro/print 0.6.2 → 0.6.3

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 _0x4e0678=_0x2156;(function(_0x18bc03,_0x1198d6){const _0x296d12=_0x2156,_0x5a4da8=_0x18bc03();while(!![]){try{const _0x2e74d7=-parseInt(_0x296d12(0x207))/0x1+parseInt(_0x296d12(0x20d))/0x2+-parseInt(_0x296d12(0x1e2))/0x3+-parseInt(_0x296d12(0x20b))/0x4+parseInt(_0x296d12(0x1fc))/0x5*(-parseInt(_0x296d12(0x1f1))/0x6)+parseInt(_0x296d12(0x1e7))/0x7*(-parseInt(_0x296d12(0x1e6))/0x8)+parseInt(_0x296d12(0x204))/0x9;if(_0x2e74d7===_0x1198d6)break;else _0x5a4da8['push'](_0x5a4da8['shift']());}catch(_0x378a46){_0x5a4da8['push'](_0x5a4da8['shift']());}}}(_0x59df,0xbc676));function _0x2156(_0x3da2fa,_0x517ed9){const _0x59dfc5=_0x59df();return _0x2156=function(_0x21568b,_0x5ebf39){_0x21568b=_0x21568b-0x1e2;let _0xdca40d=_0x59dfc5[_0x21568b];return _0xdca40d;},_0x2156(_0x3da2fa,_0x517ed9);}function _0x59df(){const _0x22e914=['1245576aHtFEt','7GmlmiS','FitWidth','PRINT_CONTAINER_CLASS','Portrait','Executive','PaperMarginMap','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide','printing-canvas','Middle','74700WJxUOD','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Letter','None','PrintScale','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.','PrintPaperSize','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px\x20','PRINT_CANVAS_CLASS','475gQqcTn','defineProperty','toStringTag','Origin','createPrintStyle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Statement','Start','33256287XhJHYI','End','Normal','1354873sQrqHx','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Folio','Tabloid','4995068aWWDeR','FitHeight','2705884azbCKZ','PrintAlign','innerHTML','Landscape','className','Legal','Custom','1002888hAHeNC','PrintDirection','FitPage','PaperSizePxMap'];_0x59df=function(){return _0x22e914;};return _0x59df();}Object[_0x4e0678(0x1fd)](exports,Symbol[_0x4e0678(0x1fe)],{'value':'Module'});var e=(_0x5b1203=>(_0x5b1203[_0x4e0678(0x1f4)]=_0x4e0678(0x1f4),_0x5b1203[_0x4e0678(0x20a)]=_0x4e0678(0x20a),_0x5b1203[_0x4e0678(0x212)]='Legal',_0x5b1203[_0x4e0678(0x202)]=_0x4e0678(0x202),_0x5b1203[_0x4e0678(0x1eb)]=_0x4e0678(0x1eb),_0x5b1203['Folio']='Folio',_0x5b1203['A3']='A3',_0x5b1203['A4']='A4',_0x5b1203['A5']='A5',_0x5b1203['B4']='B4',_0x5b1203['B5']='B5',_0x5b1203))(e||{}),i=(_0x12a4ec=>(_0x12a4ec[_0x4e0678(0x1ea)]=_0x4e0678(0x1ea),_0x12a4ec['Landscape']=_0x4e0678(0x210),_0x12a4ec))(i||{}),c=(_0x1e80be=>(_0x1e80be[_0x4e0678(0x1ff)]=_0x4e0678(0x1ff),_0x1e80be['FitWidth']=_0x4e0678(0x1e8),_0x1e80be[_0x4e0678(0x20c)]='FitHeight',_0x1e80be[_0x4e0678(0x1e4)]=_0x4e0678(0x1e4),_0x1e80be[_0x4e0678(0x213)]=_0x4e0678(0x213),_0x1e80be))(c||{}),g=(_0x459a17=>(_0x459a17[_0x4e0678(0x203)]=_0x4e0678(0x203),_0x459a17[_0x4e0678(0x205)]='End',_0x459a17[_0x4e0678(0x1f0)]=_0x4e0678(0x1f0),_0x459a17))(g||{}),o=(_0x2ba505=>(_0x2ba505[_0x4e0678(0x206)]=_0x4e0678(0x206),_0x2ba505['Narrow']='Narrow',_0x2ba505[_0x4e0678(0x1ee)]=_0x4e0678(0x1ee),_0x2ba505[_0x4e0678(0x1f5)]=_0x4e0678(0x1f5),_0x2ba505))(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[_0x4e0678(0x1eb)]]:{'w':0x2b8,'h':0x3f0},[e[_0x4e0678(0x209)]]:{'w':0x330,'h':0x4e0},[e[_0x4e0678(0x212)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x4e0678(0x202)]]:{'w':0x210,'h':0x330},[e[_0x4e0678(0x20a)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4e0678(0x1f5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x4e0678(0x1ef);function A(_0x327e06,_0x31f258){const _0x2bb0ab=_0x4e0678,{w:_0x426b3e,h:_0x4596b2}=m[_0x327e06],_0x176f9e=_0x31f258===i[_0x2bb0ab(0x1ea)]?_0x426b3e:_0x4596b2,_0x51a46a=_0x31f258===i[_0x2bb0ab(0x1ea)]?_0x4596b2:_0x426b3e,_0x18f053=_0x2bb0ab(0x208)+_0x176f9e+_0x2bb0ab(0x1fa)+_0x51a46a+_0x2bb0ab(0x1f7)+n+',\x20.'+n+_0x2bb0ab(0x1ed)+p+_0x2bb0ab(0x201)+_0x51a46a+_0x2bb0ab(0x1f3)+_0x176f9e+_0x2bb0ab(0x1f9),_0x283a04=document['createElement'](_0x2bb0ab(0x1f2));return _0x283a04[_0x2bb0ab(0x20f)]=_0x18f053,_0x283a04[_0x2bb0ab(0x211)]='offline-printing-css',_0x283a04;}exports[_0x4e0678(0x1fb)]=p,exports[_0x4e0678(0x1e9)]=n,exports[_0x4e0678(0x1ec)]=N,exports[_0x4e0678(0x1e5)]=m,exports[_0x4e0678(0x20e)]=g,exports[_0x4e0678(0x1e3)]=i,exports['PrintPaperMargin']=o,exports[_0x4e0678(0x1f8)]=e,exports[_0x4e0678(0x1f6)]=c,exports[_0x4e0678(0x200)]=A;
1
+ 'use strict';const _0x268b37=_0x4d72;(function(_0x41c4c0,_0x454ca6){const _0x42b9ed=_0x4d72,_0x163b78=_0x41c4c0();while(!![]){try{const _0x5861a3=-parseInt(_0x42b9ed(0x1a0))/0x1+-parseInt(_0x42b9ed(0x19c))/0x2+-parseInt(_0x42b9ed(0x19a))/0x3*(-parseInt(_0x42b9ed(0x1c1))/0x4)+parseInt(_0x42b9ed(0x1c2))/0x5+-parseInt(_0x42b9ed(0x19b))/0x6+-parseInt(_0x42b9ed(0x1b8))/0x7*(-parseInt(_0x42b9ed(0x1ae))/0x8)+parseInt(_0x42b9ed(0x1bc))/0x9*(parseInt(_0x42b9ed(0x1b4))/0xa);if(_0x5861a3===_0x454ca6)break;else _0x163b78['push'](_0x163b78['shift']());}catch(_0x46a6ca){_0x163b78['push'](_0x163b78['shift']());}}}(_0xa2ff,0x5a3e1));function _0x4d72(_0x28d51e,_0x18053e){const _0xa2ffda=_0xa2ff();return _0x4d72=function(_0x4d72fb,_0x3f4660){_0x4d72fb=_0x4d72fb-0x19a;let _0x1fa6f2=_0xa2ffda[_0x4d72fb];return _0x1fa6f2;},_0x4d72(_0x28d51e,_0x18053e);}Object[_0x268b37(0x1b3)](exports,Symbol[_0x268b37(0x19f)],{'value':'Module'});function _0xa2ff(){const _0x424d7b=['offline-printing-css','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','428qXPwON','1497105SBRHfP','End','Letter','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Origin','FitHeight','PaperSizePxMap','FitPage','14724MAZGLw','323994Ebfqsj','466930OEelnm','FitWidth','Landscape','toStringTag','560184nlTNZd','Legal','px\x20','PrintPaperSize','style','\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.','Tabloid',',\x20.','None','Normal','printing-canvas','Portrait','PrintAlign','Wide','716504VzcTgq','Statement','Executive','Folio','PrintScale','defineProperty','248030rqNYnX','className','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintDirection','21jcKhTj','printing-canvas-container','PaperMarginMap','PRINT_CONTAINER_CLASS','45ReOqTY','Narrow'];_0xa2ff=function(){return _0x424d7b;};return _0xa2ff();}var e=(_0x29f64b=>(_0x29f64b[_0x268b37(0x1c4)]='Letter',_0x29f64b[_0x268b37(0x1a6)]=_0x268b37(0x1a6),_0x29f64b['Legal']=_0x268b37(0x1a1),_0x29f64b[_0x268b37(0x1af)]=_0x268b37(0x1af),_0x29f64b[_0x268b37(0x1b0)]=_0x268b37(0x1b0),_0x29f64b[_0x268b37(0x1b1)]=_0x268b37(0x1b1),_0x29f64b['A3']='A3',_0x29f64b['A4']='A4',_0x29f64b['A5']='A5',_0x29f64b['B4']='B4',_0x29f64b['B5']='B5',_0x29f64b))(e||{}),i=(_0x1212ee=>(_0x1212ee[_0x268b37(0x1ab)]='Portrait',_0x1212ee['Landscape']=_0x268b37(0x19e),_0x1212ee))(i||{}),c=(_0x367c3b=>(_0x367c3b[_0x268b37(0x1c7)]=_0x268b37(0x1c7),_0x367c3b[_0x268b37(0x19d)]=_0x268b37(0x19d),_0x367c3b[_0x268b37(0x1c8)]='FitHeight',_0x367c3b[_0x268b37(0x1ca)]=_0x268b37(0x1ca),_0x367c3b[_0x268b37(0x1c5)]=_0x268b37(0x1c5),_0x367c3b))(c||{}),g=(_0x25c970=>(_0x25c970['Start']='Start',_0x25c970[_0x268b37(0x1c3)]=_0x268b37(0x1c3),_0x25c970['Middle']='Middle',_0x25c970))(g||{}),o=(_0x396e0b=>(_0x396e0b[_0x268b37(0x1a9)]=_0x268b37(0x1a9),_0x396e0b[_0x268b37(0x1bd)]='Narrow',_0x396e0b['Wide']='Wide',_0x396e0b['None']='None',_0x396e0b))(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[_0x268b37(0x1b0)]]:{'w':0x2b8,'h':0x3f0},[e[_0x268b37(0x1b1)]]:{'w':0x330,'h':0x4e0},[e[_0x268b37(0x1a1)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x268b37(0x1af)]]:{'w':0x210,'h':0x330},[e[_0x268b37(0x1a6)]]:{'w':0x420,'h':0x660}},N={[o[_0x268b37(0x1a9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x268b37(0x1bd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x268b37(0x1ad)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x268b37(0x1a8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x268b37(0x1b9),p=_0x268b37(0x1aa);function A(_0x14becd,_0x58c8c4){const _0x5939a5=_0x268b37,{w:_0x452a37,h:_0x35cf9e}=m[_0x14becd],_0x230e0e=_0x58c8c4===i['Portrait']?_0x452a37:_0x35cf9e,_0x7c2d8a=_0x58c8c4===i[_0x5939a5(0x1ab)]?_0x35cf9e:_0x452a37,_0x10457a='\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'+_0x230e0e+_0x5939a5(0x1a2)+_0x7c2d8a+'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+_0x5939a5(0x1a7)+n+_0x5939a5(0x1a5)+p+_0x5939a5(0x1b6)+_0x7c2d8a+_0x5939a5(0x1c0)+_0x230e0e+_0x5939a5(0x1c6),_0x22a823=document['createElement'](_0x5939a5(0x1a4));return _0x22a823[_0x5939a5(0x1bf)]=_0x10457a,_0x22a823[_0x5939a5(0x1b5)]=_0x5939a5(0x1be),_0x22a823;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x268b37(0x1bb)]=n,exports[_0x268b37(0x1ba)]=N,exports[_0x268b37(0x1c9)]=m,exports[_0x268b37(0x1ac)]=g,exports[_0x268b37(0x1b7)]=i,exports['PrintPaperMargin']=o,exports[_0x268b37(0x1a3)]=e,exports[_0x268b37(0x1b2)]=c,exports['createPrintStyle']=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x337ce9=_0x1992;function _0x56f8(){const _0x7a06f=['Wide','innerHTML','None','Origin','Executive','2102118GiurhX','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','printing-canvas','5930454thPKdx','Landscape','Folio','Normal','Narrow','FitPage','261854jSsTgl','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.','16980016EvdqCq','Letter','className','2297937ZRobtN','Middle','End','510307mcLfWp',',\x20.','1153112yuxZvE','style','px\x20','Tabloid','Portrait','Custom','Legal','Statement','offline-printing-css','\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','5NAvLWg','FitWidth'];_0x56f8=function(){return _0x7a06f;};return _0x56f8();}(function(_0x449e72,_0x48405f){const _0xf9cd79=_0x1992,_0x231c43=_0x449e72();while(!![]){try{const _0x19e15f=-parseInt(_0xf9cd79(0x11c))/0x1+-parseInt(_0xf9cd79(0x111))/0x2+parseInt(_0xf9cd79(0x121))/0x3+parseInt(_0xf9cd79(0x126))/0x4+-parseInt(_0xf9cd79(0x130))/0x5*(parseInt(_0xf9cd79(0x116))/0x6)+-parseInt(_0xf9cd79(0x124))/0x7+parseInt(_0xf9cd79(0x11e))/0x8;if(_0x19e15f===_0x48405f)break;else _0x231c43['push'](_0x231c43['shift']());}catch(_0x2091a3){_0x231c43['push'](_0x231c43['shift']());}}}(_0x56f8,0xc3ee8));var o=(_0x5e6b58=>(_0x5e6b58[_0x337ce9(0x11f)]=_0x337ce9(0x11f),_0x5e6b58[_0x337ce9(0x129)]='Tabloid',_0x5e6b58[_0x337ce9(0x12c)]=_0x337ce9(0x12c),_0x5e6b58['Statement']=_0x337ce9(0x12d),_0x5e6b58[_0x337ce9(0x110)]=_0x337ce9(0x110),_0x5e6b58['Folio']=_0x337ce9(0x118),_0x5e6b58['A3']='A3',_0x5e6b58['A4']='A4',_0x5e6b58['A5']='A5',_0x5e6b58['B4']='B4',_0x5e6b58['B5']='B5',_0x5e6b58))(o||{}),i=(_0xf1b7d=>(_0xf1b7d[_0x337ce9(0x12a)]=_0x337ce9(0x12a),_0xf1b7d[_0x337ce9(0x117)]=_0x337ce9(0x117),_0xf1b7d))(i||{}),w=(_0x55b6bd=>(_0x55b6bd[_0x337ce9(0x10f)]='Origin',_0x55b6bd[_0x337ce9(0x131)]=_0x337ce9(0x131),_0x55b6bd['FitHeight']='FitHeight',_0x55b6bd[_0x337ce9(0x11b)]=_0x337ce9(0x11b),_0x55b6bd[_0x337ce9(0x12b)]=_0x337ce9(0x12b),_0x55b6bd))(w||{}),m=(_0xd85788=>(_0xd85788[_0x337ce9(0x112)]='Start',_0xd85788['End']=_0x337ce9(0x123),_0xd85788[_0x337ce9(0x122)]=_0x337ce9(0x122),_0xd85788))(m||{}),e=(_0x87251a=>(_0x87251a[_0x337ce9(0x119)]=_0x337ce9(0x119),_0x87251a[_0x337ce9(0x11a)]='Narrow',_0x87251a[_0x337ce9(0x132)]=_0x337ce9(0x132),_0x87251a[_0x337ce9(0x10e)]=_0x337ce9(0x10e),_0x87251a))(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[_0x337ce9(0x110)]]:{'w':0x2b8,'h':0x3f0},[o[_0x337ce9(0x118)]]:{'w':0x330,'h':0x4e0},[o[_0x337ce9(0x12c)]]:{'w':0x330,'h':0x540},[o[_0x337ce9(0x11f)]]:{'w':0x330,'h':0x420},[o[_0x337ce9(0x12d)]]:{'w':0x210,'h':0x330},[o[_0x337ce9(0x129)]]:{'w':0x420,'h':0x660}},v={[e[_0x337ce9(0x119)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x337ce9(0x132)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x337ce9(0x10e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x337ce9(0x114),p=_0x337ce9(0x115);function N(_0x1c3a35,_0x43c9c7){const _0x48003e=_0x337ce9,{w:_0x27fceb,h:_0x5552e4}=g[_0x1c3a35],_0x29e51b=_0x43c9c7===i['Portrait']?_0x27fceb:_0x5552e4,_0x50d5df=_0x43c9c7===i[_0x48003e(0x12a)]?_0x5552e4:_0x27fceb,_0x3b5c6d=_0x48003e(0x12f)+_0x29e51b+_0x48003e(0x128)+_0x50d5df+_0x48003e(0x11d)+l+_0x48003e(0x125)+l+'\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+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x50d5df+_0x48003e(0x113)+_0x29e51b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1e8280=document['createElement'](_0x48003e(0x127));return _0x1e8280[_0x48003e(0x133)]=_0x3b5c6d,_0x1e8280[_0x48003e(0x120)]=_0x48003e(0x12e),_0x1e8280;}function _0x1992(_0x5727a3,_0x42a935){const _0x56f8cb=_0x56f8();return _0x1992=function(_0x199284,_0x8581c8){_0x199284=_0x199284-0x10e;let _0x25485b=_0x56f8cb[_0x199284];return _0x25485b;},_0x1992(_0x5727a3,_0x42a935);}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
1
+ const _0x20cbfa=_0x396f;(function(_0x47c9f6,_0x1ccaeb){const _0x40ae26=_0x396f,_0x530882=_0x47c9f6();while(!![]){try{const _0x1170d9=-parseInt(_0x40ae26(0x1ae))/0x1+-parseInt(_0x40ae26(0x1a6))/0x2*(parseInt(_0x40ae26(0x1b4))/0x3)+-parseInt(_0x40ae26(0x19b))/0x4*(parseInt(_0x40ae26(0x1be))/0x5)+parseInt(_0x40ae26(0x1ab))/0x6*(parseInt(_0x40ae26(0x1a9))/0x7)+-parseInt(_0x40ae26(0x1a5))/0x8*(parseInt(_0x40ae26(0x1ad))/0x9)+parseInt(_0x40ae26(0x1b6))/0xa*(-parseInt(_0x40ae26(0x19f))/0xb)+parseInt(_0x40ae26(0x1a1))/0xc;if(_0x1170d9===_0x1ccaeb)break;else _0x530882['push'](_0x530882['shift']());}catch(_0x8f3d98){_0x530882['push'](_0x530882['shift']());}}}(_0x5193,0xbbb15));var o=(_0xfc2bdc=>(_0xfc2bdc[_0x20cbfa(0x1a4)]=_0x20cbfa(0x1a4),_0xfc2bdc[_0x20cbfa(0x19c)]=_0x20cbfa(0x19c),_0xfc2bdc[_0x20cbfa(0x199)]=_0x20cbfa(0x199),_0xfc2bdc[_0x20cbfa(0x197)]=_0x20cbfa(0x197),_0xfc2bdc[_0x20cbfa(0x1a8)]=_0x20cbfa(0x1a8),_0xfc2bdc[_0x20cbfa(0x1b9)]='Folio',_0xfc2bdc['A3']='A3',_0xfc2bdc['A4']='A4',_0xfc2bdc['A5']='A5',_0xfc2bdc['B4']='B4',_0xfc2bdc['B5']='B5',_0xfc2bdc))(o||{}),i=(_0x3e7bd2=>(_0x3e7bd2[_0x20cbfa(0x1a3)]=_0x20cbfa(0x1a3),_0x3e7bd2[_0x20cbfa(0x1b5)]=_0x20cbfa(0x1b5),_0x3e7bd2))(i||{}),w=(_0x21fda4=>(_0x21fda4[_0x20cbfa(0x1aa)]='Origin',_0x21fda4[_0x20cbfa(0x1a7)]=_0x20cbfa(0x1a7),_0x21fda4[_0x20cbfa(0x19e)]=_0x20cbfa(0x19e),_0x21fda4[_0x20cbfa(0x1ba)]=_0x20cbfa(0x1ba),_0x21fda4[_0x20cbfa(0x1bd)]='Custom',_0x21fda4))(w||{}),m=(_0x4840a7=>(_0x4840a7[_0x20cbfa(0x19d)]=_0x20cbfa(0x19d),_0x4840a7['End']=_0x20cbfa(0x1ac),_0x4840a7[_0x20cbfa(0x1bc)]=_0x20cbfa(0x1bc),_0x4840a7))(m||{}),e=(_0x1365dc=>(_0x1365dc[_0x20cbfa(0x1af)]=_0x20cbfa(0x1af),_0x1365dc['Narrow']='Narrow',_0x1365dc['Wide']=_0x20cbfa(0x1b2),_0x1365dc[_0x20cbfa(0x1b1)]=_0x20cbfa(0x1b1),_0x1365dc))(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[_0x20cbfa(0x1a8)]]:{'w':0x2b8,'h':0x3f0},[o[_0x20cbfa(0x1b9)]]:{'w':0x330,'h':0x4e0},[o[_0x20cbfa(0x199)]]:{'w':0x330,'h':0x540},[o[_0x20cbfa(0x1a4)]]:{'w':0x330,'h':0x420},[o[_0x20cbfa(0x197)]]:{'w':0x210,'h':0x330},[o[_0x20cbfa(0x19c)]]:{'w':0x420,'h':0x660}},v={[e[_0x20cbfa(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x20cbfa(0x1a2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x20cbfa(0x1bf),p=_0x20cbfa(0x1bb);function N(_0x22a4aa,_0x5eff0d){const _0x25c9ca=_0x20cbfa,{w:_0x77fcb9,h:_0x3edb10}=g[_0x22a4aa],_0x242fda=_0x5eff0d===i['Portrait']?_0x77fcb9:_0x3edb10,_0x5697b5=_0x5eff0d===i['Portrait']?_0x3edb10:_0x77fcb9,_0x4d5a4a='\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'+_0x242fda+_0x25c9ca(0x1b7)+_0x5697b5+_0x25c9ca(0x198)+l+_0x25c9ca(0x19a)+l+_0x25c9ca(0x1b0)+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'+_0x5697b5+_0x25c9ca(0x1b8)+_0x242fda+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x524553=document[_0x25c9ca(0x1b3)](_0x25c9ca(0x196));return _0x524553[_0x25c9ca(0x1c1)]=_0x4d5a4a,_0x524553[_0x25c9ca(0x1a0)]=_0x25c9ca(0x1c0),_0x524553;}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};function _0x396f(_0x497d5d,_0x2a08fd){const _0x519317=_0x5193();return _0x396f=function(_0x396f0a,_0x34b0ea){_0x396f0a=_0x396f0a-0x196;let _0x132c61=_0x519317[_0x396f0a];return _0x132c61;},_0x396f(_0x497d5d,_0x2a08fd);}function _0x5193(){const _0x1e1f4b=['FitHeight','1374901EOyPRJ','className','15479412fCpYBZ','Narrow','Portrait','Letter','584ygHHuT','15078jmoNHU','FitWidth','Executive','22071zgSRfA','Origin','2814tXWIsG','End','27918eyimTF','797939yhnINN','Normal','\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.','None','Wide','createElement','54ZCFBQV','Landscape','10AaiHjq','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Folio','FitPage','printing-canvas','Middle','Custom','3574205sNUkng','printing-canvas-container','offline-printing-css','innerHTML','style','Statement','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.','Legal',',\x20.','4TBgbsk','Tabloid','Start'];_0x5193=function(){return _0x1e1f4b;};return _0x5193();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x739b(_0x1e24b0,_0x5a1e3b){const _0x4844b0=_0x4844();return _0x739b=function(_0x739bd0,_0x58de74){_0x739bd0=_0x739bd0-0xd9;let _0xce4027=_0x4844b0[_0x739bd0];return _0xce4027;},_0x739b(_0x1e24b0,_0x5a1e3b);}(function(_0x59c38e,_0x54fcf6){const _0x37c6d1=_0x739b,_0x3d620e=_0x59c38e();while(!![]){try{const _0x4ff658=-parseInt(_0x37c6d1(0xf8))/0x1+parseInt(_0x37c6d1(0xe5))/0x2*(-parseInt(_0x37c6d1(0xe6))/0x3)+parseInt(_0x37c6d1(0xe9))/0x4+parseInt(_0x37c6d1(0xfd))/0x5*(parseInt(_0x37c6d1(0xfc))/0x6)+parseInt(_0x37c6d1(0xea))/0x7+-parseInt(_0x37c6d1(0xdd))/0x8+parseInt(_0x37c6d1(0xda))/0x9;if(_0x4ff658===_0x54fcf6)break;else _0x3d620e['push'](_0x3d620e['shift']());}catch(_0x5b8e27){_0x3d620e['push'](_0x3d620e['shift']());}}}(_0x4844,0x379cc),function(_0x136d7e,_0x1febdf){const _0x481762=_0x739b;typeof exports==_0x481762(0xf2)&&typeof module<'u'?_0x1febdf(exports):typeof define==_0x481762(0xf5)&&define[_0x481762(0xee)]?define([_0x481762(0xdc)],_0x1febdf):(_0x136d7e=typeof globalThis<'u'?globalThis:_0x136d7e||self,_0x1febdf(_0x136d7e['UniverProPrint']={}));}(this,function(_0x5bfc03){'use strict';const _0x274140=_0x739b;var _0x36ac63=(_0x31e968=>(_0x31e968[_0x274140(0xe1)]=_0x274140(0xe1),_0x31e968[_0x274140(0xfb)]='Tabloid',_0x31e968[_0x274140(0xde)]=_0x274140(0xde),_0x31e968[_0x274140(0xe3)]=_0x274140(0xe3),_0x31e968[_0x274140(0xe2)]=_0x274140(0xe2),_0x31e968[_0x274140(0xe4)]=_0x274140(0xe4),_0x31e968['A3']='A3',_0x31e968['A4']='A4',_0x31e968['A5']='A5',_0x31e968['B4']='B4',_0x31e968['B5']='B5',_0x31e968))(_0x36ac63||{}),_0x195251=(_0x32767c=>(_0x32767c[_0x274140(0xeb)]='Portrait',_0x32767c[_0x274140(0x10a)]='Landscape',_0x32767c))(_0x195251||{}),_0x180e19=(_0x3144ca=>(_0x3144ca['Origin']='Origin',_0x3144ca[_0x274140(0xf9)]=_0x274140(0xf9),_0x3144ca[_0x274140(0x10c)]=_0x274140(0x10c),_0x3144ca[_0x274140(0xed)]=_0x274140(0xed),_0x3144ca[_0x274140(0x101)]=_0x274140(0x101),_0x3144ca))(_0x180e19||{}),_0x3c1eab=(_0x523f8c=>(_0x523f8c[_0x274140(0x107)]=_0x274140(0x107),_0x523f8c[_0x274140(0x100)]=_0x274140(0x100),_0x523f8c[_0x274140(0x105)]=_0x274140(0x105),_0x523f8c))(_0x3c1eab||{}),_0x40598e=(_0x512015=>(_0x512015[_0x274140(0xd9)]=_0x274140(0xd9),_0x512015[_0x274140(0xf6)]=_0x274140(0xf6),_0x512015['Wide']=_0x274140(0x10d),_0x512015[_0x274140(0xf3)]=_0x274140(0xf3),_0x512015))(_0x40598e||{});const _0x4b2246={[_0x36ac63['A3']]:{'w':0x463,'h':0x633},[_0x36ac63['A4']]:{'w':0x31a,'h':0x464},[_0x36ac63['A5']]:{'w':0x22f,'h':0x31a},[_0x36ac63['B4']]:{'w':0x3b0,'h':0x540},[_0x36ac63['B5']]:{'w':0x299,'h':0x3b0},[_0x36ac63['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x36ac63['Folio']]:{'w':0x330,'h':0x4e0},[_0x36ac63['Legal']]:{'w':0x330,'h':0x540},[_0x36ac63[_0x274140(0xe1)]]:{'w':0x330,'h':0x420},[_0x36ac63['Statement']]:{'w':0x210,'h':0x330},[_0x36ac63['Tabloid']]:{'w':0x420,'h':0x660}},_0x44fb84={[_0x40598e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x40598e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x40598e[_0x274140(0x10d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x40598e[_0x274140(0xf3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1472b2=_0x274140(0xdf),_0x2f4ead='printing-canvas';function _0x3062cf(_0x47ed78,_0x50ba11){const _0x1ad53f=_0x274140,{w:_0x411b3b,h:_0x456635}=_0x4b2246[_0x47ed78],_0x20d96d=_0x50ba11===_0x195251[_0x1ad53f(0xeb)]?_0x411b3b:_0x456635,_0xc30d74=_0x50ba11===_0x195251[_0x1ad53f(0xeb)]?_0x456635:_0x411b3b,_0x814d99=_0x1ad53f(0xf0)+_0x20d96d+_0x1ad53f(0x108)+_0xc30d74+_0x1ad53f(0x102)+_0x1472b2+_0x1ad53f(0x110)+_0x1472b2+_0x1ad53f(0xec)+_0x2f4ead+_0x1ad53f(0xf1)+_0xc30d74+_0x1ad53f(0xe0)+_0x20d96d+_0x1ad53f(0x10f),_0x4ec40d=document[_0x1ad53f(0x104)](_0x1ad53f(0xff));return _0x4ec40d[_0x1ad53f(0xf4)]=_0x814d99,_0x4ec40d[_0x1ad53f(0x103)]=_0x1ad53f(0xdb),_0x4ec40d;}_0x5bfc03[_0x274140(0x109)]=_0x2f4ead,_0x5bfc03['PRINT_CONTAINER_CLASS']=_0x1472b2,_0x5bfc03[_0x274140(0xfe)]=_0x44fb84,_0x5bfc03[_0x274140(0x10e)]=_0x4b2246,_0x5bfc03[_0x274140(0xfa)]=_0x3c1eab,_0x5bfc03['PrintDirection']=_0x195251,_0x5bfc03[_0x274140(0xe7)]=_0x40598e,_0x5bfc03[_0x274140(0xe8)]=_0x36ac63,_0x5bfc03[_0x274140(0x10b)]=_0x180e19,_0x5bfc03['createPrintStyle']=_0x3062cf,Object[_0x274140(0x106)](_0x5bfc03,Symbol[_0x274140(0xef)],{'value':_0x274140(0xf7)});}));function _0x4844(){const _0x2bc263=['printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Letter','Executive','Statement','Folio','2deSiDB','206865ZezxeH','PrintPaperMargin','PrintPaperSize','104024SycilP','404194dtXELS','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.','FitPage','amd','toStringTag','\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','object','None','innerHTML','function','Narrow','Module','433277iBkriF','FitWidth','PrintAlign','Tabloid','2112162ppZctC','5lCNtRH','PaperMarginMap','style','End','Custom','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.','className','createElement','Middle','defineProperty','Start','px\x20','PRINT_CANVAS_CLASS','Landscape','PrintScale','FitHeight','Wide','PaperSizePxMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',',\x20.','Normal','6197580aHAqKH','offline-printing-css','exports','3155000xgHDpQ','Legal'];_0x4844=function(){return _0x2bc263;};return _0x4844();}
1
+ (function(_0x2b016e,_0xf826fa){const _0x49ebc1=_0x2b28,_0x3a2fd8=_0x2b016e();while(!![]){try{const _0x1ceb43=-parseInt(_0x49ebc1(0x1c9))/0x1+-parseInt(_0x49ebc1(0x1ca))/0x2*(-parseInt(_0x49ebc1(0x1b8))/0x3)+-parseInt(_0x49ebc1(0x1be))/0x4+-parseInt(_0x49ebc1(0x1b2))/0x5*(-parseInt(_0x49ebc1(0x1cc))/0x6)+-parseInt(_0x49ebc1(0x1d6))/0x7*(-parseInt(_0x49ebc1(0x1c8))/0x8)+-parseInt(_0x49ebc1(0x1b5))/0x9+parseInt(_0x49ebc1(0x1d3))/0xa*(-parseInt(_0x49ebc1(0x1a6))/0xb);if(_0x1ceb43===_0xf826fa)break;else _0x3a2fd8['push'](_0x3a2fd8['shift']());}catch(_0x6a00eb){_0x3a2fd8['push'](_0x3a2fd8['shift']());}}}(_0x18eb,0x5f7e0),function(_0x3da004,_0x403e15){const _0x1ed105=_0x2b28;typeof exports==_0x1ed105(0x1d2)&&typeof module<'u'?_0x403e15(exports):typeof define==_0x1ed105(0x1b7)&&define[_0x1ed105(0x1b6)]?define([_0x1ed105(0x1b4)],_0x403e15):(_0x3da004=typeof globalThis<'u'?globalThis:_0x3da004||self,_0x403e15(_0x3da004[_0x1ed105(0x1a8)]={}));}(this,function(_0x44946c){'use strict';const _0x139042=_0x2b28;var _0x579f62=(_0x220f55=>(_0x220f55['Letter']=_0x139042(0x1b0),_0x220f55[_0x139042(0x1ce)]=_0x139042(0x1ce),_0x220f55[_0x139042(0x1c3)]=_0x139042(0x1c3),_0x220f55[_0x139042(0x1b9)]=_0x139042(0x1b9),_0x220f55[_0x139042(0x1b3)]=_0x139042(0x1b3),_0x220f55[_0x139042(0x1ba)]=_0x139042(0x1ba),_0x220f55['A3']='A3',_0x220f55['A4']='A4',_0x220f55['A5']='A5',_0x220f55['B4']='B4',_0x220f55['B5']='B5',_0x220f55))(_0x579f62||{}),_0xfdfd06=(_0x129482=>(_0x129482[_0x139042(0x1d7)]='Portrait',_0x129482[_0x139042(0x1c6)]=_0x139042(0x1c6),_0x129482))(_0xfdfd06||{}),_0x29b4e9=(_0x534419=>(_0x534419['Origin']=_0x139042(0x1d0),_0x534419[_0x139042(0x1a3)]=_0x139042(0x1a3),_0x534419['FitHeight']='FitHeight',_0x534419[_0x139042(0x1bc)]=_0x139042(0x1bc),_0x534419[_0x139042(0x1cb)]=_0x139042(0x1cb),_0x534419))(_0x29b4e9||{}),_0x379e23=(_0x4f90ec=>(_0x4f90ec['Start']='Start',_0x4f90ec['End']=_0x139042(0x1ad),_0x4f90ec[_0x139042(0x1a5)]=_0x139042(0x1a5),_0x4f90ec))(_0x379e23||{}),_0x13139b=(_0x1e8d84=>(_0x1e8d84[_0x139042(0x1c5)]=_0x139042(0x1c5),_0x1e8d84[_0x139042(0x1bf)]=_0x139042(0x1bf),_0x1e8d84[_0x139042(0x1ab)]=_0x139042(0x1ab),_0x1e8d84[_0x139042(0x1af)]=_0x139042(0x1af),_0x1e8d84))(_0x13139b||{});const _0x4a31fa={[_0x579f62['A3']]:{'w':0x463,'h':0x633},[_0x579f62['A4']]:{'w':0x31a,'h':0x464},[_0x579f62['A5']]:{'w':0x22f,'h':0x31a},[_0x579f62['B4']]:{'w':0x3b0,'h':0x540},[_0x579f62['B5']]:{'w':0x299,'h':0x3b0},[_0x579f62[_0x139042(0x1b3)]]:{'w':0x2b8,'h':0x3f0},[_0x579f62['Folio']]:{'w':0x330,'h':0x4e0},[_0x579f62[_0x139042(0x1c3)]]:{'w':0x330,'h':0x540},[_0x579f62['Letter']]:{'w':0x330,'h':0x420},[_0x579f62[_0x139042(0x1b9)]]:{'w':0x210,'h':0x330},[_0x579f62[_0x139042(0x1ce)]]:{'w':0x420,'h':0x660}},_0x3c8ee1={[_0x13139b[_0x139042(0x1c5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x13139b[_0x139042(0x1bf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x13139b[_0x139042(0x1ab)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x13139b['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x537d79=_0x139042(0x1aa),_0x3404ca=_0x139042(0x1d1);function _0xb1b59b(_0x2d84c9,_0x26f052){const _0x525d18=_0x139042,{w:_0x399cc3,h:_0x1b6e1d}=_0x4a31fa[_0x2d84c9],_0x42fc9f=_0x26f052===_0xfdfd06['Portrait']?_0x399cc3:_0x1b6e1d,_0x18becc=_0x26f052===_0xfdfd06[_0x525d18(0x1d7)]?_0x1b6e1d:_0x399cc3,_0x5af65f=_0x525d18(0x1bb)+_0x42fc9f+'px\x20'+_0x18becc+'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.'+_0x537d79+_0x525d18(0x1d5)+_0x537d79+_0x525d18(0x1d4)+_0x3404ca+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x18becc+_0x525d18(0x1c4)+_0x42fc9f+_0x525d18(0x1cf),_0x1eca19=document[_0x525d18(0x1a7)](_0x525d18(0x1c2));return _0x1eca19[_0x525d18(0x1ac)]=_0x5af65f,_0x1eca19['className']='offline-printing-css',_0x1eca19;}_0x44946c[_0x139042(0x1b1)]=_0x3404ca,_0x44946c['PRINT_CONTAINER_CLASS']=_0x537d79,_0x44946c[_0x139042(0x1c1)]=_0x3c8ee1,_0x44946c[_0x139042(0x1cd)]=_0x4a31fa,_0x44946c[_0x139042(0x1ae)]=_0x379e23,_0x44946c['PrintDirection']=_0xfdfd06,_0x44946c[_0x139042(0x1a9)]=_0x13139b,_0x44946c['PrintPaperSize']=_0x579f62,_0x44946c[_0x139042(0x1a4)]=_0x29b4e9,_0x44946c[_0x139042(0x1bd)]=_0xb1b59b,Object[_0x139042(0x1c0)](_0x44946c,Symbol['toStringTag'],{'value':_0x139042(0x1c7)});}));function _0x2b28(_0x52ce6f,_0x3123ce){const _0x18eb46=_0x18eb();return _0x2b28=function(_0x2b2833,_0xecfc54){_0x2b2833=_0x2b2833-0x1a3;let _0x31248e=_0x18eb46[_0x2b2833];return _0x31248e;},_0x2b28(_0x52ce6f,_0x3123ce);}function _0x18eb(){const _0xc646cb=['176PVqkvL','Custom','204492BwovSJ','PaperSizePxMap','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Origin','printing-canvas','object','10Txjfbf','\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.',',\x20.','7mRrMOe','Portrait','FitWidth','PrintScale','Middle','4360631idYwhK','createElement','UniverProPrint','PrintPaperMargin','printing-canvas-container','Wide','innerHTML','End','PrintAlign','None','Letter','PRINT_CANVAS_CLASS','10MyoyCg','Executive','exports','1862919TazZJN','amd','function','24525DAxyDP','Statement','Folio','\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','createPrintStyle','432652zjFLQM','Narrow','defineProperty','PaperMarginMap','style','Legal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Normal','Landscape','Module','2957392nmENVF','54527yCnsAy'];_0x18eb=function(){return _0xc646cb;};return _0x18eb();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
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.3",
45
+ "typescript": "^5.8.2",
46
46
  "vite": "^6.2.0",
47
47
  "vitest": "^3.0.7",
48
- "@univerjs-infra/shared": "0.6.2"
48
+ "@univerjs-infra/shared": "0.6.3"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",