@univerjs-pro/print 0.6.2 → 0.6.3-nightly.202503051607

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';function _0x1e0c(){const _0x1c656f=['FitWidth','40485AOymDq','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.','PRINT_CONTAINER_CLASS','toStringTag','PaperMarginMap','printing-canvas','defineProperty','FitHeight','px\x20','167656jRbJBf','style','70970lYTzvY','PrintPaperSize','Folio','Custom','\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.','createPrintStyle','Landscape','PaperSizePxMap','PrintDirection','226302oTacOv','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','342QXDkNX','Letter','className','Wide','End','Middle',',\x20.','3629262wNdXse','None','Portrait','18SUzdim','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Module','Executive','PRINT_CANVAS_CLASS','Origin','Tabloid','1008tLClXG','Narrow','innerHTML','Normal','FitPage','PrintScale','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Legal','2089140MUMrMZ','1237584iUxqWs','offline-printing-css','createElement'];_0x1e0c=function(){return _0x1c656f;};return _0x1e0c();}const _0x42f6ff=_0x2fa9;(function(_0x260868,_0x321c98){const _0x5b4956=_0x2fa9,_0x195e75=_0x260868();while(!![]){try{const _0x357fe9=parseInt(_0x5b4956(0x103))/0x1+parseInt(_0x5b4956(0x11a))/0x2*(parseInt(_0x5b4956(0x10e))/0x3)+parseInt(_0x5b4956(0xf5))/0x4+-parseInt(_0x5b4956(0xfa))/0x5*(-parseInt(_0x5b4956(0x110))/0x6)+-parseInt(_0x5b4956(0x117))/0x7+-parseInt(_0x5b4956(0xf6))/0x8+-parseInt(_0x5b4956(0x121))/0x9*(parseInt(_0x5b4956(0x105))/0xa);if(_0x357fe9===_0x321c98)break;else _0x195e75['push'](_0x195e75['shift']());}catch(_0x3363d1){_0x195e75['push'](_0x195e75['shift']());}}}(_0x1e0c,0x5876c));Object[_0x42f6ff(0x100)](exports,Symbol[_0x42f6ff(0xfd)],{'value':_0x42f6ff(0x11c)});function _0x2fa9(_0x9aa65c,_0x290425){const _0x1e0cf9=_0x1e0c();return _0x2fa9=function(_0x2fa9a3,_0x2d3f60){_0x2fa9a3=_0x2fa9a3-0xf0;let _0xbcf71e=_0x1e0cf9[_0x2fa9a3];return _0xbcf71e;},_0x2fa9(_0x9aa65c,_0x290425);}var e=(_0x3c09f2=>(_0x3c09f2[_0x42f6ff(0x111)]=_0x42f6ff(0x111),_0x3c09f2[_0x42f6ff(0x120)]=_0x42f6ff(0x120),_0x3c09f2[_0x42f6ff(0xf4)]=_0x42f6ff(0xf4),_0x3c09f2[_0x42f6ff(0xf2)]=_0x42f6ff(0xf2),_0x3c09f2[_0x42f6ff(0x11d)]=_0x42f6ff(0x11d),_0x3c09f2[_0x42f6ff(0x107)]='Folio',_0x3c09f2['A3']='A3',_0x3c09f2['A4']='A4',_0x3c09f2['A5']='A5',_0x3c09f2['B4']='B4',_0x3c09f2['B5']='B5',_0x3c09f2))(e||{}),i=(_0x5a1332=>(_0x5a1332[_0x42f6ff(0x119)]=_0x42f6ff(0x119),_0x5a1332[_0x42f6ff(0x10b)]=_0x42f6ff(0x10b),_0x5a1332))(i||{}),c=(_0x1de598=>(_0x1de598[_0x42f6ff(0x11f)]=_0x42f6ff(0x11f),_0x1de598[_0x42f6ff(0xf9)]='FitWidth',_0x1de598[_0x42f6ff(0x101)]=_0x42f6ff(0x101),_0x1de598[_0x42f6ff(0xf0)]='FitPage',_0x1de598['Custom']=_0x42f6ff(0x108),_0x1de598))(c||{}),g=(_0x15d044=>(_0x15d044['Start']='Start',_0x15d044['End']=_0x42f6ff(0x114),_0x15d044['Middle']=_0x42f6ff(0x115),_0x15d044))(g||{}),o=(_0x406711=>(_0x406711[_0x42f6ff(0x124)]=_0x42f6ff(0x124),_0x406711[_0x42f6ff(0x122)]='Narrow',_0x406711[_0x42f6ff(0x113)]='Wide',_0x406711[_0x42f6ff(0x118)]='None',_0x406711))(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[_0x42f6ff(0x11d)]]:{'w':0x2b8,'h':0x3f0},[e[_0x42f6ff(0x107)]]:{'w':0x330,'h':0x4e0},[e[_0x42f6ff(0xf4)]]:{'w':0x330,'h':0x540},[e[_0x42f6ff(0x111)]]:{'w':0x330,'h':0x420},[e[_0x42f6ff(0xf2)]]:{'w':0x210,'h':0x330},[e[_0x42f6ff(0x120)]]:{'w':0x420,'h':0x660}},N={[o[_0x42f6ff(0x124)]]:{'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[_0x42f6ff(0x118)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x42f6ff(0xff);function A(_0x4364c2,_0x33021e){const _0x2bb8b2=_0x42f6ff,{w:_0x336591,h:_0x1cd8c8}=m[_0x4364c2],_0x1cf920=_0x33021e===i[_0x2bb8b2(0x119)]?_0x336591:_0x1cd8c8,_0x17b556=_0x33021e===i[_0x2bb8b2(0x119)]?_0x1cd8c8:_0x336591,_0x4f7a2b='\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'+_0x1cf920+_0x2bb8b2(0x102)+_0x17b556+_0x2bb8b2(0xfb)+n+_0x2bb8b2(0x116)+n+_0x2bb8b2(0x109)+p+_0x2bb8b2(0x10f)+_0x17b556+_0x2bb8b2(0xf3)+_0x1cf920+_0x2bb8b2(0x11b),_0x5583ba=document[_0x2bb8b2(0xf8)](_0x2bb8b2(0x104));return _0x5583ba[_0x2bb8b2(0x123)]=_0x4f7a2b,_0x5583ba[_0x2bb8b2(0x112)]=_0x2bb8b2(0xf7),_0x5583ba;}exports[_0x42f6ff(0x11e)]=p,exports[_0x42f6ff(0xfc)]=n,exports[_0x42f6ff(0xfe)]=N,exports[_0x42f6ff(0x10c)]=m,exports['PrintAlign']=g,exports[_0x42f6ff(0x10d)]=i,exports['PrintPaperMargin']=o,exports[_0x42f6ff(0x106)]=e,exports[_0x42f6ff(0xf1)]=c,exports[_0x42f6ff(0x10a)]=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 _0x52baf6=_0x4365;function _0x4365(_0x42e16b,_0x801687){const _0x7ce4e4=_0x7ce4();return _0x4365=function(_0x4365b3,_0x419918){_0x4365b3=_0x4365b3-0x185;let _0x137afc=_0x7ce4e4[_0x4365b3];return _0x137afc;},_0x4365(_0x42e16b,_0x801687);}(function(_0x3a6795,_0x2689f3){const _0xca5ca4=_0x4365,_0x2e5ea9=_0x3a6795();while(!![]){try{const _0x5db73f=parseInt(_0xca5ca4(0x18f))/0x1*(-parseInt(_0xca5ca4(0x18e))/0x2)+-parseInt(_0xca5ca4(0x1aa))/0x3+-parseInt(_0xca5ca4(0x1a1))/0x4+parseInt(_0xca5ca4(0x19c))/0x5*(-parseInt(_0xca5ca4(0x197))/0x6)+parseInt(_0xca5ca4(0x196))/0x7+-parseInt(_0xca5ca4(0x1a8))/0x8*(parseInt(_0xca5ca4(0x19a))/0x9)+-parseInt(_0xca5ca4(0x193))/0xa*(-parseInt(_0xca5ca4(0x18c))/0xb);if(_0x5db73f===_0x2689f3)break;else _0x2e5ea9['push'](_0x2e5ea9['shift']());}catch(_0x1ce273){_0x2e5ea9['push'](_0x2e5ea9['shift']());}}}(_0x7ce4,0xda617));var o=(_0x49a3f9=>(_0x49a3f9['Letter']=_0x52baf6(0x199),_0x49a3f9[_0x52baf6(0x19d)]='Tabloid',_0x49a3f9[_0x52baf6(0x189)]='Legal',_0x49a3f9['Statement']=_0x52baf6(0x19e),_0x49a3f9[_0x52baf6(0x1a7)]=_0x52baf6(0x1a7),_0x49a3f9['Folio']=_0x52baf6(0x18d),_0x49a3f9['A3']='A3',_0x49a3f9['A4']='A4',_0x49a3f9['A5']='A5',_0x49a3f9['B4']='B4',_0x49a3f9['B5']='B5',_0x49a3f9))(o||{}),i=(_0x73357f=>(_0x73357f[_0x52baf6(0x1a5)]=_0x52baf6(0x1a5),_0x73357f[_0x52baf6(0x192)]=_0x52baf6(0x192),_0x73357f))(i||{}),w=(_0x24ef7e=>(_0x24ef7e[_0x52baf6(0x19b)]=_0x52baf6(0x19b),_0x24ef7e[_0x52baf6(0x191)]=_0x52baf6(0x191),_0x24ef7e['FitHeight']=_0x52baf6(0x18a),_0x24ef7e[_0x52baf6(0x1ae)]='FitPage',_0x24ef7e[_0x52baf6(0x190)]='Custom',_0x24ef7e))(w||{}),m=(_0x46786d=>(_0x46786d[_0x52baf6(0x198)]='Start',_0x46786d[_0x52baf6(0x1a4)]=_0x52baf6(0x1a4),_0x46786d[_0x52baf6(0x187)]='Middle',_0x46786d))(m||{}),e=(_0x11d96f=>(_0x11d96f['Normal']='Normal',_0x11d96f['Narrow']='Narrow',_0x11d96f[_0x52baf6(0x194)]=_0x52baf6(0x194),_0x11d96f[_0x52baf6(0x188)]='None',_0x11d96f))(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[_0x52baf6(0x1a7)]]:{'w':0x2b8,'h':0x3f0},[o[_0x52baf6(0x18d)]]:{'w':0x330,'h':0x4e0},[o[_0x52baf6(0x189)]]:{'w':0x330,'h':0x540},[o[_0x52baf6(0x199)]]:{'w':0x330,'h':0x420},[o[_0x52baf6(0x19e)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x52baf6(0x1a3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x52baf6(0x1a0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x52baf6(0x188)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x52baf6(0x195);function N(_0x14d26b,_0x20ab28){const _0x6bd3f9=_0x52baf6,{w:_0x3f2813,h:_0x366264}=g[_0x14d26b],_0x1fed58=_0x20ab28===i[_0x6bd3f9(0x1a5)]?_0x3f2813:_0x366264,_0x3d64c7=_0x20ab28===i[_0x6bd3f9(0x1a5)]?_0x366264:_0x3f2813,_0x443c09='\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'+_0x1fed58+_0x6bd3f9(0x186)+_0x3d64c7+_0x6bd3f9(0x1a6)+l+_0x6bd3f9(0x1ad)+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+_0x6bd3f9(0x1a9)+_0x3d64c7+_0x6bd3f9(0x1ac)+_0x1fed58+_0x6bd3f9(0x18b),_0x11fe23=document['createElement'](_0x6bd3f9(0x1ab));return _0x11fe23[_0x6bd3f9(0x1a2)]=_0x443c09,_0x11fe23[_0x6bd3f9(0x185)]=_0x6bd3f9(0x19f),_0x11fe23;}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 _0x7ce4(){const _0xf4e15f=['2129304FiChHN','Start','Letter','9MVsZEC','Origin','25zNjWJO','Tabloid','Statement','offline-printing-css','Narrow','2427636mozzXm','innerHTML','Normal','End','Portrait','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.','Executive','10792504coHZFn','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','3364566EHgXmA','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','FitPage','className','px\x20','Middle','None','Legal','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','59797991FIMsbU','Folio','116158PAwPEV','9glkSUW','Custom','FitWidth','Landscape','10fjmoie','Wide','printing-canvas','5830517EVfhwp'];_0x7ce4=function(){return _0xf4e15f;};return _0x7ce4();}
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(_0x19a168,_0x45898a){const _0x1a4435=_0x2150,_0x854367=_0x19a168();while(!![]){try{const _0x45c641=parseInt(_0x1a4435(0xeb))/0x1*(-parseInt(_0x1a4435(0xea))/0x2)+-parseInt(_0x1a4435(0xb9))/0x3*(-parseInt(_0x1a4435(0xc2))/0x4)+parseInt(_0x1a4435(0xd0))/0x5*(parseInt(_0x1a4435(0xe4))/0x6)+-parseInt(_0x1a4435(0xbd))/0x7+-parseInt(_0x1a4435(0xca))/0x8*(-parseInt(_0x1a4435(0xd8))/0x9)+-parseInt(_0x1a4435(0xc3))/0xa*(-parseInt(_0x1a4435(0xe2))/0xb)+-parseInt(_0x1a4435(0xe3))/0xc;if(_0x45c641===_0x45898a)break;else _0x854367['push'](_0x854367['shift']());}catch(_0x43a163){_0x854367['push'](_0x854367['shift']());}}}(_0x272c,0x6fe4a),function(_0x48d41b,_0x4400e0){const _0xadc1e5=_0x2150;typeof exports==_0xadc1e5(0xdf)&&typeof module<'u'?_0x4400e0(exports):typeof define==_0xadc1e5(0xee)&&define['amd']?define([_0xadc1e5(0xd3)],_0x4400e0):(_0x48d41b=typeof globalThis<'u'?globalThis:_0x48d41b||self,_0x4400e0(_0x48d41b['UniverProPrint']={}));}(this,function(_0x3f2541){'use strict';const _0x1a6e2f=_0x2150;var _0x21cae7=(_0x43da54=>(_0x43da54['Letter']=_0x1a6e2f(0xcc),_0x43da54[_0x1a6e2f(0xce)]=_0x1a6e2f(0xce),_0x43da54[_0x1a6e2f(0xc6)]=_0x1a6e2f(0xc6),_0x43da54[_0x1a6e2f(0xb8)]=_0x1a6e2f(0xb8),_0x43da54[_0x1a6e2f(0xd5)]=_0x1a6e2f(0xd5),_0x43da54[_0x1a6e2f(0xc5)]='Folio',_0x43da54['A3']='A3',_0x43da54['A4']='A4',_0x43da54['A5']='A5',_0x43da54['B4']='B4',_0x43da54['B5']='B5',_0x43da54))(_0x21cae7||{}),_0x3473d9=(_0x53dd64=>(_0x53dd64[_0x1a6e2f(0xdd)]='Portrait',_0x53dd64[_0x1a6e2f(0xdc)]=_0x1a6e2f(0xdc),_0x53dd64))(_0x3473d9||{}),_0xd21c4d=(_0x209f6e=>(_0x209f6e[_0x1a6e2f(0xbb)]=_0x1a6e2f(0xbb),_0x209f6e[_0x1a6e2f(0xd2)]='FitWidth',_0x209f6e[_0x1a6e2f(0xd4)]=_0x1a6e2f(0xd4),_0x209f6e[_0x1a6e2f(0xcb)]=_0x1a6e2f(0xcb),_0x209f6e['Custom']=_0x1a6e2f(0xda),_0x209f6e))(_0xd21c4d||{}),_0x1191b9=(_0x15bc45=>(_0x15bc45[_0x1a6e2f(0xc0)]=_0x1a6e2f(0xc0),_0x15bc45[_0x1a6e2f(0xe0)]=_0x1a6e2f(0xe0),_0x15bc45[_0x1a6e2f(0xd6)]=_0x1a6e2f(0xd6),_0x15bc45))(_0x1191b9||{}),_0x4382e9=(_0x5b1e7a=>(_0x5b1e7a[_0x1a6e2f(0xdb)]='Normal',_0x5b1e7a[_0x1a6e2f(0xe9)]=_0x1a6e2f(0xe9),_0x5b1e7a[_0x1a6e2f(0xed)]=_0x1a6e2f(0xed),_0x5b1e7a['None']='None',_0x5b1e7a))(_0x4382e9||{});const _0x2f571a={[_0x21cae7['A3']]:{'w':0x463,'h':0x633},[_0x21cae7['A4']]:{'w':0x31a,'h':0x464},[_0x21cae7['A5']]:{'w':0x22f,'h':0x31a},[_0x21cae7['B4']]:{'w':0x3b0,'h':0x540},[_0x21cae7['B5']]:{'w':0x299,'h':0x3b0},[_0x21cae7['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x21cae7['Folio']]:{'w':0x330,'h':0x4e0},[_0x21cae7[_0x1a6e2f(0xc6)]]:{'w':0x330,'h':0x540},[_0x21cae7[_0x1a6e2f(0xcc)]]:{'w':0x330,'h':0x420},[_0x21cae7['Statement']]:{'w':0x210,'h':0x330},[_0x21cae7[_0x1a6e2f(0xce)]]:{'w':0x420,'h':0x660}},_0x3f6acd={[_0x4382e9[_0x1a6e2f(0xdb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4382e9[_0x1a6e2f(0xe9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4382e9['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4382e9['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2d71d6=_0x1a6e2f(0xe5),_0x56205d=_0x1a6e2f(0xde);function _0x4b88f7(_0x346b2e,_0x38e14a){const _0x5e2d5c=_0x1a6e2f,{w:_0x256863,h:_0x34f89e}=_0x2f571a[_0x346b2e],_0x2f9279=_0x38e14a===_0x3473d9['Portrait']?_0x256863:_0x34f89e,_0x3b69f4=_0x38e14a===_0x3473d9[_0x5e2d5c(0xdd)]?_0x34f89e:_0x256863,_0x5ac195=_0x5e2d5c(0xec)+_0x2f9279+_0x5e2d5c(0xe7)+_0x3b69f4+_0x5e2d5c(0xc1)+_0x2d71d6+_0x5e2d5c(0xc7)+_0x2d71d6+_0x5e2d5c(0xe6)+_0x56205d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x3b69f4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2f9279+_0x5e2d5c(0xe1),_0x327618=document[_0x5e2d5c(0xe8)]('style');return _0x327618[_0x5e2d5c(0xcd)]=_0x5ac195,_0x327618[_0x5e2d5c(0xbf)]=_0x5e2d5c(0xc9),_0x327618;}_0x3f2541['PRINT_CANVAS_CLASS']=_0x56205d,_0x3f2541[_0x1a6e2f(0xba)]=_0x2d71d6,_0x3f2541[_0x1a6e2f(0xbe)]=_0x3f6acd,_0x3f2541[_0x1a6e2f(0xd7)]=_0x2f571a,_0x3f2541['PrintAlign']=_0x1191b9,_0x3f2541[_0x1a6e2f(0xcf)]=_0x3473d9,_0x3f2541[_0x1a6e2f(0xc8)]=_0x4382e9,_0x3f2541['PrintPaperSize']=_0x21cae7,_0x3f2541[_0x1a6e2f(0xd9)]=_0xd21c4d,_0x3f2541[_0x1a6e2f(0xc4)]=_0x4b88f7,Object[_0x1a6e2f(0xd1)](_0x3f2541,Symbol['toStringTag'],{'value':_0x1a6e2f(0xbc)});}));function _0x2150(_0x46bbd8,_0x4505d9){const _0x272c9c=_0x272c();return _0x2150=function(_0x2150c3,_0x10b91f){_0x2150c3=_0x2150c3-0xb8;let _0x391968=_0x272c9c[_0x2150c3];return _0x391968;},_0x2150(_0x46bbd8,_0x4505d9);}function _0x272c(){const _0x52ed1c=['object','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','143pPahAl','14262240RNnAgr','2878704APJAvR','printing-canvas-container','\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.','px\x20','createElement','Narrow','379134qFaImj','1tRvxEo','\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','function','Statement','3eWpqDB','PRINT_CONTAINER_CLASS','Origin','Module','6226605seHPFQ','PaperMarginMap','className','Start','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.','3076708HKRMwr','509270iziZeO','createPrintStyle','Folio','Legal',',\x20.','PrintPaperMargin','offline-printing-css','814904PukIWP','FitPage','Letter','innerHTML','Tabloid','PrintDirection','5kTlVOh','defineProperty','FitWidth','exports','FitHeight','Executive','Middle','PaperSizePxMap','72cvmsSe','PrintScale','Custom','Normal','Landscape','Portrait','printing-canvas'];_0x272c=function(){return _0x52ed1c;};return _0x272c();}
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-nightly.202503051607",
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",